• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Pagination CSS Class not Updating with CPT archive pages

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

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)
  • Author
    Posts
  • March 9, 2015 at 3:03 pm #143831
    brettatkin
    Member

    Here 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.

    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()
    ?>
  • http://www.samrhine.com.php53-3.ord1-1.websitetestlink.com/schedule/
May 8, 2015 at 2:05 pm #151003
Susan
Moderator

As 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.

  • Author
    Posts
  • Viewing 2 posts - 1 through 2 (of 2 total)
    • The forum ‘General Discussion’ is closed to new topics and replies.

    CTA

    Ready to get started? Create a site or shop for themes.

    Create a site with WP EngineShop for Themes

    Footer

    StudioPress

    © 2025 WPEngine, Inc.

    Products
    • Create a Site with WP Engine
    • Shop for Themes
    • Theme Features
    • Get Started
    • Showcase
    Company
    • Brand Assets
    • Terms of Service
    • Accptable Usse Policy
    • Privacy Policy
    • Refund Policy
    • Contact Us
    Community
    • Find Developers
    • Forums
    • Facebook Group
    • #GenesisWP
    • Showcase
    Resources
    • StudioPress Blog
    • Help & Documentation
    • FAQs
    • Code Snippets
    • Affiliates
    Connect
    • StudioPress Live
    • StudioPress FM
    • Facebook
    • Twitter
    • Dribbble