• 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

jradar

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 23, 2015 at 11:10 pm in reply to: first / last post nav #138492
    jradar
    Member

    add_filter('genesis_next_link_text','rs_next_page_text');
    function rs_next_page_text(){
    $nextlink = 'Older >';
    return $nextlink;
    }

    i can see that in the above function, i want to add the following, but i'm not sure how ... adding it within that function doesn't make sense ... it's adding a second button within the button .... i'm close but i'm lost.

    $categories = get_the_category();
    if ( count( $categories ) ) {
    $category = array_shift( $categories );
    $cat_id = $category->cat_ID;

    //get array of Posts for Category, default is 'order by date', set it to Ascending instead of default Descending
    $args = array( 'category' => $cat_id, 'order' => 'ASC' );
    $posts = get_posts( $args );

    //display

    link that jumps to first item in Posts Array
    $link = $posts[0]->guid;
    echo '<anch href='.$link.'>FIRST</anch>';
    }

    add_filter('genesis_prev_link_text','rs_prev_page_text');
    function rs_prev_page_text(){
    $prevlink = '< Newer';
    return $prevlink;
    }

    January 23, 2015 at 8:29 pm in reply to: first / last post nav #138479
    jradar
    Member

    thanks very much, i appreciate the response ... any chance you could point me towards how to add this in genesis?

    i'm not super good with the php but i can fumble my way thru some things

    do i pull the genesis loops.php into the child theme to customize?

    or do i attempt to do the remove/add action via the child theme' functions?

    for what it's worth, this isn't a paid project, i'm helping someone and trying to learn as i go

    January 23, 2015 at 1:16 pm in reply to: first / last post nav #138440
    jradar
    Member

    thanks Ren, but i don't want next / previous ... i want first/last ... big difference ... i can already step forward between posts ... i want to jump to the very first post or the very last post ... i can't seem to find reference to this anywhere???

    ideas please?! thanks very much

    January 23, 2015 at 10:50 am in reply to: first / last post nav #138426
    jradar
    Member

    not even one comment? am i asking something ridiculous?

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)

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