-
AuthorPosts
-
June 19, 2023 at 11:58 am #1411055
The plugin Post Types Order has always worked with enfold. But it does not obey anymore. Is this a know problem?
June 19, 2023 at 7:46 pm #1411097Hey limedrop,
No, it’s not a known problem. Did you try it out on a clean installation using the latest version of both theme and plugin? Please note that our support for unsupported third party plugins is limited.
Best regards,
RikardJuly 11, 2023 at 1:35 pm #1413047Hi, we’re seeing the same behaviour. I have tried Post Types Order and Intuitive Custom Post Order but neither make a difference when using Post Slider or Blog Posts elements.
I’m not in a position to try this with a clean install but plugins and theme are all up-to-date.
I tried using the code snippet from here replacing ’tilte’ with ‘menu_order’ (the column Intuitive Custom Post Order uses for ordering) but still no difference.
add_filter('avia_blog_post_query', 'avia_modify_post_grid_query_desc'); function avia_modify_post_grid_query_desc( $query ) { $query['orderby'] = 'title'; $query['order'] = 'DESC'; return $query; }Should the ordering plugins be working? Any ideas why they might not be?
Thanks
July 22, 2023 at 2:14 pm #1414041Hi,
If you want to sort the Blog Post element by menu_order try this function:add_filter('avia_post_slide_query', 'avia_modify_post_grid_query_desc'); function avia_modify_post_grid_query_desc( $query ) { $query['orderby'] = 'menu_order'; $query['order'] = 'DESC'; return $query; }Note that the ‘menu_order’ would need a distinct value as it is zero by default
Best regards,
MikeJuly 23, 2023 at 8:43 am #1414100Thanks Mike but that’s literally exactly what I said I already tried and isn’t working.
Any other ideas?
July 23, 2023 at 1:03 pm #1414112Hi,
Please look again, your code is add_filter(‘avia_blog_post_query’, and my code is add_filter(‘avia_post_slide_query’, I tested mine before I posted it.Best regards,
MikeAugust 16, 2023 at 4:13 pm #1416412Sorry for not spotting the difference and for the slow reply. Your code works and now I can successfully use the Post Types Order plugin to order posts.
Thanks
August 16, 2023 at 5:17 pm #1416416Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Post Types Order not working anymore’ is closed to new replies.
