Display posts from a specific category on frontpage.php template?

Take a look at multiple loops for examples And also look at the content.php file in the Twenty Fourteen theme <?php // The Query $category_query = new WP_Query( ‘category__in=11’ ); // The Loop if ( $category_query->have_posts() ) { echo ‘<ul>’; while ( $category_query->have_posts() ) { $category_query->the_post(); echo ‘<li>’ . get_the_title() . ‘</li>’; } echo ‘</ul>’; … Read more

Show custom category archive as front page and remove taxonomy slug from urls

I was able to solve this by removing CPT UI plugin, registering the custom post type with: function create_post_type() { $args = array ( ‘public’ => true, ‘has_archive’ => true, ‘show_ui’ => true, ‘supports’ => array(‘revision’,’title’,’editor’,’author’, ‘thumbnail’, ‘custom-fields’), ‘taxonomies’ => array( ‘category’ ), ‘labels’ => array( ‘name’ => __( ‘work’ ), ‘singular_name’ => __( ‘work’ … Read more

Static front page as parent of with child pages?

Are you just outputting the pages for the navigation with wp_list_pages() or a similar function? It might be better to use the WordPress Menu feature and create a menu for the navigation, then use wp_nav_menu() to display it. Alternatively, instead of setting a static page in the backend you can edit (or create) the home.php … Read more

WordPress sections in htaccess kills FrontPage permissions

To make sure WordPress catches requests to your blog only you have to restrict the rewrite rules to your domain (host) name. # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / # must match exactly your domain name RewriteCond %{HTTP_HOST} ^example\.com$ RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] … Read more