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

    Hello everyone
    I have created a page here Link below: see below

    Then I created a portfolio with two pages:
    1 This gallery is private / category is set to private
    2 This gallery is public / category is set to public

    So far everything fits
    Then I created two menu items: see below:

    When I open one of the two links the categories become visible correctly
    but if I then open one of the two portfolio entries I can scroll to the other entry

    I don’t quite understand that
    is it possible that I can only display the entries with the correct category?

    I hope you understand what I mean

    thanks
    kind regards Franz

    #1428863

    but if I then open one of the two portfolio entries I can scroll to the other entry

    you belong to the post navigation arrows left and right. If those entries should stay only in the same category …
    can you try this in your child-theme functions.php:

    add_filter('avf_post_nav_settings','enfold_customization_postnav', 10, 1);
    function enfold_customization_postnav($settings){
      $settings['skip_output'] = false;
      $settings['same_category'] = true;
      return $settings;
    }
    add_filter('avf_post_nav_settings','enfold_customization_postnav', 10, 1);

    if it does not work . we can try a different way …

    #1428867

    hello Guenni007
    I have inserted the filter into the functions.php
    Unfortunately it does not work !

    how is the other way

    thanks
    kind regards
    Franz

    #1428869

    first tell me if my suggestion from above is correct.
    it belongs to the post-navigation left/right arrows? If you have opened a single post – there are left and right arrows to navigate to the other posts.
    And now you only want to reach other posts inside the same category ?

    And you put that filter to the child-theme functions.php ?

    try : maybe the is_fullwidth setting is only missing

    
    function enfold_customization_postnav($settings){
      $settings['is_fullwidth'] = false;
      $settings['skip_output'] = false;
      $settings['same_category'] = true;
      return $settings;
    }
    add_filter('avf_post_nav_settings','enfold_customization_postnav', 10, 1);
    

    here is the github part showing the long version with comments on that filter:
    https://github.com/KriesiMedia/enfold-library/commit/969ff37a8219fee349bb94fcfdbd28fd02d22713

    #1428870

    Hello Guenni007
    Thank you very much for your help

    I have now adjusted the functions.php

    Yes, your suggestion is correct
    when I open Portfolio
    I can now only browse through the individual categories.

    you can close this request

    kind regards
    Franz

    #1428873

    Hi,

    Great, I’m glad that @guenni007 could help you out :-)

    We’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘only 1 category visible in the portfolio’ is closed to new replies.