• Hello,

    I tried to implement this code to my single portfolio file and it worked fine.

    <button class="previous-button-cat"><?php previous_post_link_plus( array('in_same_cat' => true) );?></button>
    
    <button class="next-button-cat"><?php next_post_link_plus( array('in_same_cat' => true) );	?></button>

    Now what I want is for the button to be de on the css as display none when there are no posts after or previous to show.

    Could you please enlighten me here?
    Thank you

    https://wordpress.org/plugins/ambrosite-nextprevious-page-link-plus/

  • The topic ‘Next or previous Button has to be display:none when there nothing to show.’ is closed to new replies.