-
AuthorPosts
-
July 23, 2019 at 12:32 pm #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
July 24, 2019 at 8:44 am #1121414Hey 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,
IsmaelJuly 26, 2019 at 11:44 am #1122133Hello Ismael,
Thank you for your reply. Can you recommend other plugins for sorting the portfolio ? or other solutions to avoid this conflict?
Best,
AB
July 29, 2019 at 4:55 am #1122618Hi,
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,
IsmaelJuly 29, 2019 at 11:51 am #1122716Hello 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,
ElliottBest AB
July 30, 2019 at 3:38 am #1123017Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.