Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1661487
Change/Turn off Portfolio Linking
Closed

Comments

  • michaelmcnamara04 started the conversation

    Hi, 

    On my portfolio page there is an arrow for Next and Back in the header that does not link to my other portfolio items in the parent portfolio. There is another Next and Back button near the bottom of the page. 

    • I have one portfolio item named "The Tyndall at Robertson Hill" and another named "Colinas Crossing"
    • Their parent Portfolio is "Real Estate"
    • When I click next or back in either portfolio item page, it does not go to the other, but instead goes to another demo portfolio item page.

    Please advise on how  to change this.

    Thank you

  • [deleted] replied

    Hi,

    For prev/next navigation we use next wordpress functions:

    previous_post_link
    next_post_link
    get_previous_post
    get_next_post
    

    You can find them in content-page.php template. Info about this functions you can find in wordpress documentation.

    https://codex.wordpress.org/Function_Reference/previous_post_link
    https://codex.wordpress.org/Function_Reference/next_post_link
    https://codex.wordpress.org/Function_Reference/get_previous_post
    https://codex.wordpress.org/Function_Reference/get_next_post

  • michaelmcnamara04 replied

    Hi,

    So when I imported the theme it published over 362 portfolio items, but I am using only 6 of those portfolio items. I would like to use the next function, but I don't want it to link to all of these other pages, I want it to only link to its portfolio group. 

    How do I do this? 

  • [deleted] replied

    You can move other portfolios items to trash.

    Or you can change template to use this functions only with same categories. For example you need replace this:

    get_previous_post(false, '', 'thegem_portfolios')

    with:

    get_previous_post(true, '', 'thegem_portfolios')

    in content-page.php template.

    Better do this with child theme.