Tag Info

Hot answers tagged

3

Hm, first of all your page template has to be inside your current theme folder: /wp-content/themes/current-theme/ or in a similar folder. Check the Codex (Page Templates #File Folders) to make sure your template is in the right folder. While looking at the Codex also check the Selecting a Page Template section above if you did everything the right way. Your ...


2

One way to do it is with the WordPress Template Hierarchy. If your category names/slugs are not likely to change you can have a separate template for each category. For example: category-books.php // will be loaded when viewing 'Books' category category-magazines-and-newspapers.php // will load for 'Magazines and Newspapers' category This way you can ...


1

If the Categories referred to here are the WordPress native category taxonomy, the queries for these term pages by default will only include the native post post type. To add custom post types to category term queries, you can add a bit of code to your theme's functions.php file, which modifies these queries via the pre_get_posts action to add your custom ...


1

The problem is problably here: <form id="oselector" method="GET" action="<?php the_permalink(); ?>"> Your code is not in the WordPress Loop. According to the Function Reference (emphasis added): the_permalink() - Displays the URL for the permalink to the post currently being processed in The Loop. This tag must be within The Loop, and is ...



Only top voted, non community-wiki answers of a minimum length are eligible