In my primary menu, I have added a category “News & Events” and when I click this page, I get all the posts of this category. Which php file...
Hi I have question about file names. If I have custom post type, and for template I can create for example single-portfolio.php and get content of portfolio posts into...
I have created a custom template. Now how do I apply my template instead of single.php for posts by default? I want to do this so that theme upgrade...
Is there a way of loading a template file without having a post? I’m loading set of data via an API. Set up my index page but having a...
I have found a tutorial online for creating a custom categories template for my archived posts within a particular category. This however is targetting a specific category ID (see...
My front-page.php works fine in the WordPress root folder. But I would like to put it in the page-templates subfolder. How do I make it load from there? 1...
My Issue: If I browse to http://mysite/category/mycategory, the if (is_category()) content isn’t displayed, the if(is_archive()) is shown instead. My code: archive.php: <?php include('includes/resultlist.php')?> search.php: <?php include('includes/resultlist.php')?> includes/resultlist.php: <?php get_header();...
I like to create a landing page for my custom taxonomies. Right now ive created three custom taxonomies /country/[terms] /person/[terms] /interrests/[terms] i like to create a listing page for...
In my most recent project, I’m dealing with a website that included dozens of custom taxonomies, couple of post types, content, etc. and required different templates for different authors...
I am creating a custom theme with my own HTML. I am trying to override woocommerce template. I have created a template named with woocommerce.php but it still shows...