How can I make front page to display custom taxonomy page?

I agree with @KrzysiekDróżdż While you should probably be able to do this it might be unnecessary work. However, this works with I test it, just change the category/term name and the template name (the part in get_template_part), and maybe the is_main_query() && $qry->is_home() conditional if you need to: function pregp_home_cat_wpse_104619($qry) { if (is_main_query() && … Read more

Load custom script on a single template

Multiple issues, fixing one or more of which should resolve the issue: If it’s not already, that code should go in functions.php and not a template file. Registering the scripts does not actually load them. For that you need wp_enqueue_script. If you change your wp_register_scripts to wp_enqueue_scripts, that should work. If you need jquery, you … Read more

WordPress as template engine

You might be misunderstanding exactly what WordPress is and how it operates. WordPress is a content management system, which in addition has it’s own API for working with the data held in the WordPress database as well as numerous other functions, actions and filters to help you achieve your desired result. WordPress also has it’s … Read more

How to make different custom post layouts?

To rephrase, I believe what you’re asking is how can you have a different style or template for your custom post types when they are displaying as a list? It looks like the Custom Post Templates plugin you’re using only allows you to switch templates for the single view of a post, not the listing … Read more

If Posted After Date

There are many ways of comparing dates. the following is perhaps the simplest (untested): if ( in_category( ‘photographer-interviews’ ) && strtotime( get_the_date( ‘c’ ) ) > 1376524800 ) { get_template_part( ‘content’, ‘interview’ ); } else { get_template_part( ‘content’, ‘blog’ ); } 1376524800 is the Unix timestamp for 00:00 (GMT) on August 15 – that is, … Read more

WordPress Custom Search Form Displaying Unexpected Results

You are likely getting unexpected results due to your query string. I would recommend getting familiar with the following: List of WordPress Query Variables WordPress function: get_query_var($var); List of WordPress Reserved Terms. Reserved Terms Avoiding the following reserved terms is particularly important if you are passing the term through the $_GET or $_POST array. Doing … Read more