-
AuthorPosts
-
March 27, 2024 at 1:01 pm #1438439
Hi,
i had a CODE to sort posts per drag and drop in the backend. it was working perfect. Now there came an error when i was working on the page, it said database error, the page was white, didnt load anymore for a moment, was back after a while but the sorting didn
t work anymore. It was like it normally is.
But i need to have the dates beginning by january and ending in december instead of the other way around.
The normal plugin to drag and drop in the backend wasn`t working.
You have any idea what i can do? I really need to do it that way.Many regards rixi
<?php
/* Child theme stylesheet einbinden */
function child_theme_styles()
{
wp_enqueue_style(‘parent-style’, get_template_directory_uri() . ‘/style.css’);
wp_enqueue_style(‘child-theme-css’, get_stylesheet_directory_uri() . ‘/style.css’, array(‘parent-style’));
}
add_action(‘wp_enqueue_scripts’, ‘child_theme_styles’);/** adjust the magazine element query **/
function avf_magazine_entries_query_mod($query, $params)
{if (is_page(817)) {
$query[‘order’] = ‘ASC’;
$query[‘orderby’] = ‘menu_order’;
}return $query;
}add_filter(‘avf_magazine_entries_query’, ‘avf_magazine_entries_query_mod’, 10, 2);
March 30, 2024 at 8:15 pm #1438777March 31, 2024 at 12:51 pm #1438831Hello Mike,
i am sooooo glad that you found that out – thank you very much, that made my easterday!!!!!
I changed it now and it works perfect :)Have a great eastertime and thanks again.
This enfold support team is absolutely perfect :)
Best regards
rixiMarch 31, 2024 at 2:03 pm #1438835Hi,
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 ‘sorting posts’ is closed to new replies.