Post as frontpage – avoid duplicate content

Your best way would be to redirect to the theme’s 404 page in the event that the page being loaded matches the slug that you are referring to. Try this: function check_undesirable_page(){ global $post; if(is_page() && ($post->post_name==”YOUR-SLUG-HERE”)){ global $wp_query; $wp_query->set_404(); status_header(404); } } add_action( ‘wp’, ‘check_undesirable_page’ ); EDIT: Also a good idea to incorporate the … Read more

Static front page – going against the grain

If you’ve got a front-page.php template, I think this will get used, even if you change the Reading -> Static Page settings: If you read https://codex.wordpress.org/Creating_a_Static_Front_Page you’ll see: ‘On the site front page, WordPress will always use the front-page.php template file, if it exists. If front-page.php does not exist, WordPress will determine which template file … Read more

Categories with post from child categories on front page

Normally you’d use the pre_get_posts filter for this, but for your specific case, since you probably want to customize how the posts are displayed (separately), I’d recommend setting a static front page and using a shortcode in the content that uses get_posts (yet this also means that your theme’s “Blog” template won’t be used.) eg. … Read more