• Resolved OlivierPrestant

    (@olivierprestant)


    Hi hi,
    I’m building a site for a friend and I have six serparate photo albums. I want to remove the button at the top of the album page that navigates to the previous or next albums. Is this possible within the existing structure?

    Like at the top of this page it has a little arrow directing the user towards “conference”

    Thanks a million!
    a

    https://www.ads-software.com/plugins/easy-photo-album/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author TV productions

    (@tv-productions)

    That is something you have to change in your theme. Somewhere in your theme are probably some lines of code that look like this:

    <?php
    next_posts_link();
    prev_posts_link();
    ?>

    Replace it with:

    <?php
    $p = get_post(get_the_id());
    if ('easy-photo-album' !== $p->post_type) {
        next_posts_link();
        prev_posts_link();
    }
    ?>

    This will display the next en prev links only when the current post is not a photo album

    Thread Starter OlivierPrestant

    (@olivierprestant)

    Thanks a million. After I read your comment I realised I was looking in the wrong place! I didn’t have to go into the theme but sorted it from the admin page in the post section.
    THanks again!
    Aisling

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove navigate between albums botton’ is closed to new replies.