Override static home page post
Try the template_include filter. See the docs for code example.
Try the template_include filter. See the docs for code example.
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
In the Settings Menu Click on Reading From there you can see “front page displays” and Latest Posts is ticked Tick the ” a static page” and from the drop down menu for home select your custom static page and save it. Now you can see the URL is changed.
Create a page to be your front page, then on the reading settings page select use a static front page then choose your page from the dropdown. EDIT: A quick and dirty hack based on your comment would be to convert your static HTML page to PHP and use that as a template. You can … Read more
On the WP Dashboard, navigate to: Posts => Categories Create new Category, name it – Products. Then go to your post/product-a, on the right panel search for categories and add the new category Products to the post/product. Save it or Update the post, refresh the page, now if you check the url for this post, … Read more
Provided you’ve confirmed that WP’s native ‘suggest’ script is actually being rendered on the page properly (ie. you’re using the correct template for home vs front-page), sometimes to avoid script conflicts on the page, you need to wrap your script in an anonymous function. So something like: <script> (function($) { $(“#my_input”).suggest(“<?php echo get_bloginfo(‘wpurl’); ?>/wp-admin/admin-ajax.php?action=ajax-tag-search&tax=my_taxonomy”, { … Read more
You can have some clue using the revision log. For more advanced logs, try using a plugin such Simple History
Turns out the editor was hidden using advanced custom fields plugin.
Take a look at the WordPress Template Hierarchy to see how to have different looks for different pages. The template for the front page, for instance, should be named front-page.php. If you follow the naming convention for templates, you don’t need to do anything in functions.php
You need to check in you theme parent folder templates called front-page.php, home.php and index.php. WordPress in exactly this order is searching for files to use for your homepage. It seems that your template file is broken or has nothing between get_header() and get_footer()