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

    Hello,

    I activated the “Post Types Order” plugin and it works well

    but then the order of the photos in the gallery does not work anymore – in the backend the images are correct, but they are not correct from outside (no cache problem)

    Please check inside of Enfold, the image order is different under the big photo in the left column > http://new.verimage.net/portfolio-item/coffret-triomphante/

    Thank you in advance,

    AB

    #1121414

    Hey anma,

    Thank you for using Enfold.

    There must be something in the plugin that is affecting the media query. Unfortunately, we can’t help you with this because we’re not familiar with the plugin’s code. Please contact the plugin author for additional help.

    Best regards,
    Ismael

    #1122133

    Hello Ismael,

    Thank you for your reply. Can you recommend other plugins for sorting the portfolio ? or other solutions to avoid this conflict?

    Best,

    AB

    #1122618

    Hi,

    Thank you for the update.

    The portfolio grid element has a built-in sorting option. Just edit the element and look for the “Order by” settings.

    Best regards,
    Ismael

    #1122716

    Hello Ismael,

    I’m not using the grid function – I only want to be able to change the order of the next / previous buttons on a page.

    What determins the order of these arrows, I tried to order by date of creation of the portfoilio entries, but does not work and its also not the alphabetical order.

    I neet do sort this our, please.

    This is an issue since years, why is it so complicated to order the portfolio entries via ENFOLD, not understandable for clients.

    Thank you in advance,

    PS I tried this code but the lines do not match !

    Open up /enfold/functions-enfold.php and change lines 395 – 403 from this.

    {
    $entries[‘prev’] = get_previous_post($settings[‘same_category’], $settings[‘excluded_terms’], $settings[‘taxonomy’]);
    $entries[‘next’] = get_next_post($settings[‘same_category’], $settings[‘excluded_terms’], $settings[‘taxonomy’]);
    }
    else
    {
    $entries[‘prev’] = get_previous_post($settings[‘same_category’]);
    $entries[‘next’] = get_next_post($settings[‘same_category’]);
    }
    To this.

    {
    $entries[‘next’] = get_previous_post($settings[‘same_category’], $settings[‘excluded_terms’], $settings[‘taxonomy’]);
    $entries[‘prev’] = get_next_post($settings[‘same_category’], $settings[‘excluded_terms’], $settings[‘taxonomy’]);
    }
    else
    {
    $entries[‘next’] = get_previous_post($settings[‘same_category’]);
    $entries[‘prev’] = get_next_post($settings[‘same_category’]);
    }
    Best regards,
    Elliott

    Best AB

    #1123017

    Hi,

    The default sorting order in the post navigation is by date. If you want to change it, use the following filter.

    function avf_get_prev_post_sort_mod( $sort ) {
    	return "ORDER BY p.post_title DESC LIMIT 1";
    }
    add_filter( 'get_previous_post_sort', 'avf_get_prev_post_sort_mod' );
    
    function avf_get_next_post_sort_mod( $sort ) {
    	return "ORDER BY p.post_title ASC LIMIT 1";
    }
    add_filter( 'get_next_post_sort', 'avf_get_next_post_sort_mod' );
    

    This will filter the adjacent post by title.

    Best regards,
    Ismael

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