• 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 display pagination number when you only have one blog post

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 › Design Tips and Tricks › How to display pagination number when you only have one blog post

This topic is: resolved

Tagged: pagination active link

  • This topic has 2 replies, 1 voice, and was last updated 11 years ago by Carla the Moose.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • October 12, 2015 at 9:28 pm #167995
    Carla the Moose
    Member

    I'm launching my website tonight and am so excited!

    The one thing I've been looking forward to, though, is seeing that number 1 at the bottom of my first blog post, and only that number 1, since there won't yet be any other posts.

    Things are a bit fuzzy right now as I work hard to get ready for the launch. I would sure appreciate some guidance on what to do. It seems like it would be simple enough, but I can't seem to focus and hone in on what needs to be done.

    Thank you!!

    October 12, 2015 at 9:41 pm #167996
    Carla the Moose
    Member

    Okay, Brad, if you're reading this, once again thanks for your guidance. You pointed me toward the post.php file for the last task I needed to tackle, and sure enough that's where the code is located for this one.

    Do NOT do this directly in your core file as I did. When I have time, I'm going to figure out how to write a function for this and add it to my child theme. I marked my changes with a commented out XXX so I can easily find them and then downloaded a copy of the file in case an update wipes it out.

    So here's the snippet you're looking for. No CSS adjustments needed.

    //* Stop execution if there's only 1 page XXX
    	if( $wp_query->max_num_pages <= 1 )
    		return;

    I simply changed the 1 to 0 in the below code and it works.

    P.S. You used to know me as a woodland coyote, but now I'm my proper self ... a moose!

    October 13, 2015 at 12:02 am #168003
    Carla the Moose
    Member

    It occurred to me ...

    As soon as I write my second post, both pages will show in the numeric pagination. I only display one post per page.

    So no need to write a function, because in a few days I'll have more content.

    :o))

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How to display pagination number when you only have one blog post’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 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