Community Forums › Forums › Archived Forums › General Discussion › Pagination CSS Class not Updating with CPT archive pages
This topic is: not resolved
Tagged: CPT, css, pagination
- This topic has 1 reply, 2 voices, and was last updated 10 years, 7 months ago by
Susan.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
March 9, 2015 at 3:03 pm #143831
brettatkin
MemberHere is the page in question (this is a development site):
http://www.samrhine.com.php53-3.ord1-1.websitetestlink.com/schedule/
When you page though the event listings, the pagination styling isn't updating to show the "active" class for the proper
- . It is always assigning the the first
- with the class="active" setting.
http://www.samrhine.com.php53-3.ord1-1.websitetestlink.com/schedule/This page is pulling from a custom post type (CPT). Here is the code for the page:
<?php //* Remove the entry meta in the entry header (requires HTML5 theme support) remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); //* Remove the entry meta in the entry footer (requires HTML5 theme support) remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); //* Remove the post content (requires HTML5 theme support) remove_action( 'genesis_entry_content', 'genesis_do_post_content' ); //* Remove the entry title (requires HTML5 theme support) remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); //* Display custom form above entry content add_action( 'genesis_entry_content', 'sr_post_content', 9 ); /** Replace the standard loop with our custom loop */ remove_action( 'genesis_loop', 'genesis_do_loop' ); add_action( 'genesis_loop', 'child_do_custom_loop' ); function child_do_custom_loop() { global $paged; // current paginated page global $query_args; // grab the current wp_query() args $args = array( 'post_type' => 'conferences', 'order' => 'ASC', 'orderby' => 'conference_date', 'post_status' => 'publish', 'posts_per_page' => 15 ); genesis_custom_loop( wp_parse_args($query_args, $args) ); } function sr_post_content() { echo '<div class="one-fourth first">'; $date = DateTime::createFromFormat('Ymd', get_field('conference_date')); echo $date->format('m/d/Y'); echo '</div>'; echo '<div class="two-fourths">'; echo the_field('conference_location') . '<br />'; echo the_field('conference_city') . ', ' . get_field('conference_state') . ' ' . get_field('conference_zip_code'); echo '</div>'; echo '<div class="one-fourth">'; echo '<a href="' . get_permalink() . '">Register Now</a>'; echo '</div>'; echo '<div style="clear:both;"></div>'; } genesis() ?>May 8, 2015 at 2:05 pm #151003Susan
ModeratorAs you posted this a while ago, I hope you were able to get your issue resolved. If it is resolved, please mark this thread as “resolved”, so it can be closed.
If you are still having issues, report back here, and I will try to escalate.
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- The forum ‘General Discussion’ is closed to new topics and replies.