Suppress the_content filter in a nested loop
Suppress the_content filter in a nested loop
Suppress the_content filter in a nested loop
How to get multiple loop in category.php, my scripts becomes madness
Got it. It simply required echo in the call. <p>Author: <?php echo types_render_field( “author”, array( ) ) ?></p>
In this case, the issue is due to the queue order. You should change the priority of the execution of your add_action hook to something large, to ensure that it executes as late as possible. add_action‘s 3rd argument is the priority represented by an integer. Lower #’s gain priority in execution over higher #’s. add_action( … Read more
get_footer not working boilerplate theme
Three questions per post is not typical; however, as they may all be inter-related I’ll try to help step through each one in turn. The first problem may be simple: When I go to mysite.com/success-stories/, it’s using the default archive.php template. However, I have created a template called archive-successstories.php and it’s being totally ignored. The … Read more
Why the slideshow is not shown in my theme?
Ok, so after reading the codex page on the ‘save_post’ hook, I spotted that they use a different way of dealing with revisions. So removing the if {…} surrounding the wp_update_post( $posttitle ) and inserting the following code fixed my problem: if ( $post = wp_is_post_revision( $post ) ) $post = $post;
To display a menu you need to use the wp_nav_menu function (Codex reference). Try changing your template file to use the following code: <?php wp_nav_menu( array( ‘theme_location’ => ‘main-menu’ ) ); ?>
What hook to use for loading a custom class extension during Theme initialization?