• 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

Add post title to pagination Eleven Twenty Pro

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 › Add post title to pagination Eleven Twenty Pro

This topic is: resolved

Tagged: post pagination links display post title

  • This topic has 2 replies, 1 voice, and was last updated 12 years, 8 months ago by samw.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 19, 2014 at 12:54 am #95624
    samw
    Member

    Hi

    I am trying to edit the post navigation links in Eleven Twenty Pro to display the post title.

    Where is the place to edit this - cant find anything in functions.php or do I need to add a new function?

    Tried adding this to functions.php to test if its the right code but as no changes appeared in the link text, i guess not?

    //* Add post navigation (requires HTML5 theme support)
    remove_action( 'genesis_entry_footer', 'genesis_prev_next_post_nav' );
    add_action( 'genesis_entry_footer', 'cookie_prev_next_post_nav' );

    function cookie_prev_next_post_nav() {
    if ( ! is_singular( 'post' ) )
    return;

    genesis_markup( array(
    'html5' => '<div %s>',
    'xhtml' => '<div class="navigation">',
    'context' => 'adjacent-entry-pagination',
    ) );

    echo '<div class="pagination-previous alignleft">';
    previous_post_link('%link', 'new text1');
    echo '</div>';

    echo '<div class="pagination-next alignright">';
    next_post_link('%link', 'new test 2');
    echo '</div>';

    echo '</div>';
    }

    If anyone can help be appreciated

    1. Code or place to edit post navigation links in Eleven Twenty Pro to display post title

    many thanks


    SEO & Online Marketing Consultant

    Metta3 | G+ | LinkedIn

    March 19, 2014 at 2:42 am #95628
    samw
    Member

    Follow up:-

    Tried this code and no luck

    function wpsites_npp_navigation_links() {
    if ( is_single ( ) ) { ?>
    <?php previous_post('« « %', 'Previous', 'yes'); ?>
    | <?php next_post('% » » ', 'Next', 'yes'); ?>
    <?php
    } }

    add_action('genesis_entry_footer', 'wpsites_npp_navigation_links', 5 );

    To clarify:-

    Front page set to static - showing blog posts

    Theme pagination only showing on archive pages

    Issues:-

    1. Add previous/next pagination to posts both archived and not

    2. How to display post title in pagination links - theme setting with numeric or previous next works

    Thanks


    SEO & Online Marketing Consultant

    Metta3 | G+ | LinkedIn

    March 20, 2014 at 2:48 am #95769
    samw
    Member

    Hi

    Working Code Here

    Working Code Here
    //* Add post navigation (requires HTML5 theme support)
    remove_action( 'genesis_entry_footer', 'genesis_prev_next_post_nav' );
    add_action( 'genesis_entry_footer', 'cookie_prev_next_post_nav' );

    function cookie_prev_next_post_nav() {
    if ( ! is_singular( 'post' ) )
    return;

    genesis_markup( array(
    'html5' => '<div %s>',
    'xhtml' => '<div class="navigation">',
    'context' => 'adjacent-entry-pagination',
    ) );

    echo '<div class="pagination-previous alignleft">';
    previous_post_link('<span class="single-post-nav previous-post-link">%link</span>', get_previous_post_link('%title') , TRUE);
    echo '</div>';

    echo '<div class="pagination-next alignright">';
    next_post_link('<span class="single-post-nav next-post-link">%link</span>', get_next_post_link('%title') , TRUE);
    echo '</div>';

    echo '</div>';
    }

    This only works on a post level, and does not change the default archive pagination - working on that!


    SEO & Online Marketing Consultant

    Metta3 | G+ | LinkedIn

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ 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

© 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