Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #539429

    Hello,
    I would like to hide posts *with a specific category* from the single post navigation (left and right arrows showing up when viewing a single post). Is that possible?

    Thank you in advance!

    Davide

    #540861

    Hey!

    Try adding this at the very end of your theme / child theme functions.php file:

    function avia_post_nav_settings_func($settings) {
    	$settings['excluded_terms'] = '32,34,53';
    	return $settings;
    }
    add_filter('avia_post_nav_settings', 'avia_post_nav_settings_func');

    Cheers!
    Josue

    #540928

    Hi Josue,
    thanks for your reply! What are those numbers ’32, 24, 53′ for?

    thanks again!

    Davide

    #540968

    Sorry i forgot to explain that, those are the categories IDs you want to exclude, you can check the ID of the category by looking at the URL when editing one of them (in the dashboard).

    Regards,
    Josue

    #540991

    That works perfectly
    thank you Josue!

    cheers

    Davide

    #541010

    You are welcome, glad to help :)

    Regards,
    Josue

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.