Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #684768

    Hi,

    I use portfolio items to create pages about certain topics: photographs from summer schools that I attended, task groups inside our organisation etc. I use portfolio items since it is then easy to link them with the Portfolio grid.
    However, when I open one of my Summer School items, I get these small triangles on the left and right of the page to go to the other Portfolio items. That is nice, but I seem unable to limit the items. For instance, when I go to my summer school pictures, I am able to go to the pictures of previous years, but afterwards, I also can go to my task groups. And this is not what I want. Is there a way to limit the items one can go to with these small triangles (e.g. only my task groups and only my Summer schools). If not, can I disable them completely?

    Related to this, the portfolio pages do automatically get the “site/portfolio-item/” URL. Could I change this to for instance “Site/task-groups/” and “Site/summer-schools/”?

    Many thanks and best regards,

    Geert

    #684778

    Hey pixel2data!

    No, unfortunately this is not possible due to a bug (or tbh it’s more a limitation) of the get_next_post()/get_previous_post() function – see: https://kriesi.at/support/topic/is-it-possible-to-create-two-completely-seperate-portfolios

    Cheers!
    Basilis

    #684788

    Hey Basilis,

    thanks for your info. However, I found somewhere this code:

    add_filter(‘avia_post_nav_settings’,’avia_same_category_filter’, 10, 1);
    function avia_same_category_filter($settings)
    {
    $settings[‘same_category’] = true;
    return $settings;
    }

    When I paste this add the end of my functions.php file, everything works like a charm!

    Cheers,

    Geert

    #684919

    Hi Geert,

    Great, glad you found a solution and thanks for sharing :-)

    Please let us know if you should need any further help on the topic.

    Regards,
    Rikard

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