• 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

How to remove pagination in category 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 › How to remove pagination in category archive pages

This topic is: not resolved

Tagged: genesis post navigation, pagination

  • This topic has 2 replies, 3 voices, and was last updated 12 years, 1 month ago by Tom.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 15, 2013 at 12:23 pm #12079
    lazif
    Member

    I am using studiopress Metric Child Theme.  There is a bug in Genesis Theme frame work. If pagination is used  the category and search page excerpts also diplaying pagination.  It could not be removed by unhooking    genesis_posts_nav().   How can I remove post navigation links (pagination) - [numeric paginaion 1 2 3 4 g links] in category archive and search page. Thanks in advance.  I have searched and googled for the solution. But no body is discussing the topic.

    January 17, 2013 at 12:08 pm #12660
    cdils
    Participant

    You might be able to try something like this:

    /** Remove Pagination from post type archives **/
    add_action('parse_query', 'cd_nopaging');
    function cd_nopaging($query) {
        if (is_post_type_archive()) {
            $query->set('nopaging', 1);
        }
    }

    You can reference the WordPress Codex in case is_post_type_archive() isn't the right conditional check for your case.

    http://codex.wordpress.org/Conditional_Tags

    Cheers,

    Carrie


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂

    I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.

    October 24, 2013 at 2:37 pm #68690
    Tom
    Participant

    This didn't quite work for me (on a long search for a solution) but I did find one from Bill Erickson in his article: Customizing the WordPress Query [Change Posts Per Page].

    Just replace '18' with '-1' to display all posts and adjust to apply to your page(s).

    Additional reference here: http://codex.wordpress.org/Class_Reference/WP_Query#Pagination_Parameters


    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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