Okay
  Public Ticket #905361
Exclude Category from Pagination
Closed

Comments

  •  2
    Amanda started the conversation

    I finally downloaded Newave and I must say its beautiful site. I have had many trials and errors and with the help of google I have tried to get my site exactly how I want it. Just a few little things that I just can't seem to figure out. It does require me to alter the php files.

    1. Is it bad to alter php files? It seems to be the only way for certain actions though?

    2. I would like to exclude the QUOTES blog posts from the "previous" and "next" paginations located at the bottom of a Common Blog post.

    I have given these QUOTES blog posts only the category of quotes and have the ID 86.

    Where exactly can I alter the code and what should be altered because I tried all sort of options and none have worked as your code looks different than the ones I found.

     > Functions.php or Single.php at the bottom?

  •  1,973
    Support replied

    Hello, 

    To exclude certain posts from the next-prev posts navigation you can use $excluded_terms parameter:

    https://codex.wordpress.org/Function_Reference/next_post_link

    same thing applies prev_post_link

    These functions are called in single.php, lines 122-123

    In practice is bad to modif the php files because the modifications will be lost during a theme upgrade.

    Best is to use a child theme

    https://codex.wordpress.org/Child_Themes

    Thanks


    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy