Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #406133

    Hi,

    How can I limit the left/right navigation between portfolio items, to a single category ?
    I currently have 4 categories of portfolio items and it keeps navigating between all categories.

    Second question, how can I reorder the items so they appear in a correct order ? (for example alphanumerical order)
    I tried to use “post types order” plugin but it doesn’t do anything.

    #406607

    Hey ANDRE!

    1- Can you please post the link to your website?
    2- Please see – http://kriesi.at/documentation/enfold/how-to-add-an-orderorderby-option-to-the-blogpost-sliderportfoliomasonry-grid-element/

    Regards,
    Yigit

    #406732
    This reply has been marked as private.
    #407005

    Hey!

    Can you please try de-activating all active plugins and check if that helps?

    Cheers!
    Yigit

    #418442

    Hey,

    I have the same problem on enfold 3.1.2.
    Have tried the above code, but it does not work – even if I disconnect all plugins.

    The following code has previously worked
    (now it is sorted alphabetically on the page, but if I choose one of the portfolio, it seems that it is sorted by date.)

    /*filter projets - only show same category */
    add_filter('avia_post_nav_settings','avia_same_category_filter', 10, 1);
    function avia_same_category_filter($settings)
    {
    $settings['same_category'] = true;
    return $settings;
    }
    
    /*filter portfolio sorting */
    add_filter('avia_post_grid_query', 'avf_custom_post_grid_query');
    
    function avf_custom_post_grid_query ( $query ) {
    $query['orderby'] = 'name';
    $query['order'] = 'ASC';
    return $query;
    }
    

    Hope you can help
    Regards Pete,

    #419826

    hey,
    Have you found a solution?
    Regards Pete

    #420196

    Hi!

    This should work to filter the same category:

    /*filter projets - only show same category */
    add_filter('avia_post_nav_settings','avia_same_category_filter', 10, 1);
    function avia_same_category_filter($settings)
    {
    $settings['same_category'] = true;
    return $settings;
    }

    This one will work for the Portfolio Grid element. It will not work for masonry or blog posts elements:

    /*filter portfolio sorting */
    add_filter('avia_post_grid_query', 'avf_custom_post_grid_query');
    
    function avf_custom_post_grid_query ( $query ) {
    $query['orderby'] = 'name';
    $query['order'] = 'ASC';
    return $query;
    }

    Please give us a link to the page with the portfolio grid element.

    Regards,
    Ismael

    #420350
    This reply has been marked as private.
    #422715

    This seems to be the same Problem. Since Update on 3.1.3 by using “Portfolio Raster” and sorting by Date in descending order. The Portfolio Elements will shown correct, but the Page Navigation is now working in ascending order…

    • This reply was modified 9 years, 8 months ago by wellenwerk.
    #422716
    This reply has been marked as private.
    #423343

    Hey!

    @funky: The filter is working. I set the order parameter to descending and it works as expected: http://e308031c72c2a40f7804cdf17e3238990a7c8a05.web19.temporaryurl.org/test-portfolio-sorting/


    @wellenwerk
    : Add this to the functions.php file to reverse the avia post nav:

    add_filter( 'avia_post_nav_entries', 'enfold_customization_reverse_post_nav', 10, 1 );
    function enfold_customization_reverse_post_nav( $entries ) {
    	$prev = $entries['prev'];
    	$next = $entries['next'];
    	$entries['prev'] = $next;
    	$entries['next'] = $prev;
    	return $entries;
    }

    Regards,
    Ismael

    #423488

    Hey Ismael,

    The change of ‘DESC’ from ‘ASC has done, that they are not sorted alphabetically.

    They should be sorted:

    aage ABE Bent NIELS

    + next / prev does not appear correctly.
    When I click ‘Aage’ …. ‘Niels’ is shown to the left and ‘Bent’ on the right side
    (There should be nothing appearing on the left side, and ‘ABE’ comes before ‘Bent’)

    I just want it to work as it did before.
    Alphabetical sorting – both the list and when you click.

    Hope you can help

    Regards Pete,

    #424395

    Hi!

    They are sorted that way if you set the order parameter to ASC. Please check it carefully, remove browser cache before loading the page: http://e308031c72c2a40f7804cdf17e3238990a7c8a05.web19.temporaryurl.org/test-portfolio-sorting/

    When set to DESC, they are sorted as: NIELS Bent ABE aage

    Regarding the post nav, it can only filter by date, not alphabetically. You can manually change the date of the portfolio items if you want to display them alphabetically, latest post will always display first.

    Regards,
    Ismael

    #424533

    Hi! Ismael,

    Regarding to post nav, sorting has worked before is it due new update, it does not work anymore?
    I do not think it makes any sense, they will not be sorted in the same way as they appear.

    Is there another solution?

    Regards Pete

    #424569

    Tanks a lot – this is working for me… ;)

    define sortorder of the portfolio page navi:

    add_filter( ‘avia_post_nav_entries’, ‘enfold_customization_reverse_post_nav’, 10, 1 );
    function enfold_customization_reverse_post_nav( $entries ) {
    $prev = $entries[‘prev’];
    $next = $entries[‘next’];
    $entries[‘prev’] = $next;
    $entries[‘next’] = $prev;
    return $entries;
    }

    #424634

    Hey!


    @2funky
    Can you please refer to solution @wellenwerk posted above?

    Regards,
    Yigit

    #424697

    Hey Yigit,

    I can not get it to work, can you see if you can.

    Regards Pete,

    #425026

    Hi!

    It is the default behaviour of the post navigation right from the start. I’m not sure how you managed to filter them alphabetically. Please change the post date manually.

    Best regards,
    Ismael

    #425156

    Hey Ismael,
    thanks for your effort, hope in finding a solution in the future.

    Regards Pete

Viewing 19 posts - 1 through 19 (of 19 total)
  • The topic ‘item portfolio navigation buttons’ is closed to new replies.