I want to remove the home page header image from all other pages
Wrap the call to the header image in your header.php file with the following: if ( is_front_page() ) { // Call to Header Image }
Wrap the call to the header image in your header.php file with the following: if ( is_front_page() ) { // Call to Header Image }
You’re looking for single_cat_title().
The Codex does not document the $taxonomy argument. Without digging into it, my assumption would be that maybe it originally was not one of the arguments and no one ever bothered to change the Codex. The Codex, while still a tremendous resource of information, is (1) user generated/curated content and can be prone to mistakes, … Read more
You can always use GitHub. WordPress has an official (view-only) GitHub repository, and GitHub has an excellent comparison feature. Here’s the GitHub comparison of WordPress 3.4.2 vs 3.5.
It actually doesn’t matter because WooCommerce uses this, to display: $values = wc_get_product_terms( $product->id, $attribute[‘name’], array( ‘fields’ => ‘names’ ) ); However, if you don’t set the display to true, you’d have to add this code to your template files. You might have to do other things as well (styling, etc). If you just set … Read more
As I noted in the comments, this is more a programming language question than a WordPress Development question, and that goes for the second question, too. However, instead of adding to comment discussion and making more mistakes, I’ll write out an answer. function slider_news() { $num = 0; $args = array( ‘numberposts’ => 3 ); … Read more
In my opinion we cannot guarantee the post existence in db for a specific query. maybe it returns an empty array. so its best practice to use the conditional statement. plus i think we are dealing with an array so to check the empty array we should use php empty function. for example: if ( … Read more
Hi in the wordpress.org header is this: <meta name=”generator” content=”MediaWiki 1.15.5″ /> which leads me to think that it is this that is used MediaWiki regards Martin edit: something similar was aked before and it looks like a plugin solution was found Plugin Similar To MediaWiki by Bainternet
Use the following for with Custom Text with Link. The above given code by @TheDeadMedic works only with text but no link. Code With Link and Custom Text like this: <?php previous_post_link( ‘%link’,’Previous Post’ ) ?> <?php next_post_link( ‘%link’,’Next Post’ ) ?> Hope this helps.
You must check the documentation of the plugin. Is it supporting shortcodes? Do sometingh like <? do_shortcode(‘[plugin_shortcode]’); ?> Has function to call in the theme? Do something like <? my_plugin_function(); ?>