WordPress function.php on ZendFramework CMS

This really has little to do with WP. Processing of that file is simple inclusion, I don’t see any complexity to it. Relevant code from WP core: // Load the functions for the active theme, for both parent and child theme if applicable. if ( ! defined( ‘WP_INSTALLING’ ) || ‘wp-activate.php’ === $pagenow ) { … Read more

problem with the loop

did you try this? $custom_query_args = array( ‘post_type’ => ‘casestudy’, ‘connected’ => $post->ID ); $the_query = new WP_Query(); $the_query->query($custom_query_args);

Catch all taxonomy template

I had a similar issue. I ended up using the archives.php and had a little more luck with that. It would see and use the archives.php (and the archives-video.php I created from it), but would not see taxonomy.php or taxonomy-videos.php or category.php like it should.

Make Permalink go to specific template

Why not make your link include a parameter to change the way it loads the single.php page? <a href=”https://wordpress.stackexchange.com/questions/25008/<?php the_permalink(); ?>?audio-popup=1″>Link</a> Then in the single.php, you can do something like if ($_GET[‘audio-popup’] == 1) { include popup-player.php; return; } or similar to make it load that popup-player template instead. There’s other ways, but this is … Read more

Show Homepage (only) Hits Count

Add the counter (PHP or otherwise) to the template file for the home page. This will be either home.php or index.php depending on how you have things set up. If you want to instead add it in the footer, enclose the code inside a conditional tag to detect whether or not you’re on the home … Read more

Add a field to just ONE page

Take a look at the Custom Field Template plugin. It supports adding specific custom fields based on various conditions, which range from broad to fine-grained. You can, for example, limit the display of a particular set of custom fields to a particular page id.