Place content inside the Post Loop

Just as the loop starts the action loop_start fires. Once each post is setup as the loop iterates, the_post fires. After the loop has finished, loop_end fires. Each of these actions receives a reference to the queried object if you need to check for context. If you are in control of the theme code it … Read more

Responsive menu not expanding in footer

In ‘js’ directory in your child theme create file “navigation-footer.js” and paste following code: /** * Handles toggling the footer navigation menu for small screens */ ( function() { var nav = document.getElementById( ‘footer-navigation’ ), button, menu; if ( ! nav ) { return; } button = nav.getElementsByTagName( ‘button’ )[0]; menu = nav.getElementsByTagName( ‘ul’ )[0]; … Read more

Custom Pagination based on Custom Post Type

I figured it out after reviewing the code reference for is_singular some more. Here is the final code: add_action( ‘genesis_entry_footer’, ‘dr_prev_next_post_nav’ ); function dr_prev_next_post_nav() { genesis_markup( array( ‘html5’ => ‘<div %s>’, ‘xhtml’ => ‘<div class=”navigation”>’, ‘context’ => ‘adjacent-entry-pagination’, ) ); if ( is_singular( array( ’employees’ ) ) ) { echo ‘<div class=”pagination-previous one-half first alignleft”>’; … Read more