Hi,
i loaded the plugin simple custom post order to sort the posts in the right position, in the backend its ok, in the frontend its wrong.
Any idea why that is like tghat?
Many regards
rixi
Hey rixi,
Thank you for the inquiry.
The theme creates custom queries or sorting for the Magazine or Blog Posts element, which cannot be adjusted by the plugin. If you want to adjust the order of the items, please use this filter in the functions.php file.
/** adjust the magazine element query **/
function avf_magazine_entries_query_mod($query, $params)
{
if(is_page(123))
{
$query['order'] = 'ASC';
$query['orderby'] = 'title';
}
return $query;
}
add_filter('avf_magazine_entries_query','avf_magazine_entries_query_mod', 10, 2);
You can also use the following filter to add more sorting options to the magazine element.
// https://kriesi.at/support/topic/reversing-the-order-of-specific-blog-posts/#post-1395842
Best regards,
Ismael
Hi Ismael,
thanks a lot!!!
I will try that out :)
Many greetings
rixi
Hi,
Thanks for the update. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
Rikard
Hi,
Are you using a child theme? If not, then please install one, otherwise your changes will be overwritten on updates. After that you can paste the code into the end of functions.php.
Best regards,
Rikard
Hi Rikard,
i will install a child theme and then i put the code at the end.
Thanks a lot!
Many regards Rixi