Unload templates; disable parent Template Parts using only “theme.json”

Does anyone have any suggestions on how to disable certain template parts in a child theme using theme.json in WordPress with Gutenberg? Using only theme.json this is not possible, and runs counter to the vision for full site editing. In the future it’s possible that not only the parent theme templates might be visible, but … Read more

How to change post template

The way I see it you have two options here: Pass the id to a custom template and then create a custom wp_query loop and use $_GET[‘id’] as the id of the loop. For Example: <?php /* Template Name: Pop Up View */ //get id from your url $id=$_GET[‘id’]; //start custom loop $query = new … Read more

html blog template to wordpress template

That is a much bigger topic than can be addressed here. Please take a look at the WordPress Codex entry on Theme Development Generally speaking, you break the HTML into a header, footer, and content area. The header goes into header.php, the footer goes into footer.php and the content area goes into index.php or another, … Read more

Custom template pagination

If you’ve created a Custom Post Type, then WordPress should be able to handle this for you automagically. Check the Template Hierarchy. Instead of creating a “Page” and trying to paginate that, create archive-{post_type}.php instead. That file will be used as the index file for your CPT, and will show up automatically at http://yoursite.com/news. You’ve … Read more