• 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

Use Arrows for Post Navigation and limit to category

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 › Use Arrows for Post Navigation and limit to category

This topic is: not resolved

Tagged: post navigation arrows hide title limit to category

  • This topic has 2 replies, 2 voices, and was last updated 12 years, 4 months ago by Amy Kvistad.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 6, 2013 at 6:28 am #49499
    Amy Kvistad
    Member

    I would like to hide my post titles and just use an arrow to navigate between posts. If I remove the title then I am also removing the link! I would also like to limit the navigation to within the same category.

    Thanks for the help!
    ~Amy

    July 6, 2013 at 10:11 am #49523
    ramseyp
    Member

    Hi Amy,

    I did something like this once. In this case, above the post title itself, I wanted the arrows to show. In my child theme's functions.php, I wrote this:

    
    /**
     * Single Post next/prev links
     *
     */
    function s25_prev_next_post_nav() {
    	if ( ! is_singular( 'post' ) )
    		return;
    	?>
    	<div class="navigation">
    		<div class="prev"><?php previous_post_link('%link', '&laquo;', TRUE); ?></div>
    		<div class="next"><?php next_post_link('%link', '&raquo;', TRUE); ?></div>
    	</div>
    	<?php
    }
    add_action( 'genesis_before_post_title', 's25_prev_next_post_nav' );

    Community • Work • Conversations

    July 7, 2013 at 8:59 pm #49739
    Amy Kvistad
    Member

    Hi, this is great and works well. I added background color and pulled them off to the sides of the browser. One more thing I would love to fix and can't figure out is 1) how to hide the link of it is the first/last one, or 2) link to the first/last post so there is a continual loop.

    http://amykvistad.com/web/website-push-ad-design/

    Thanks!

  • 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