- 
		AuthorPosts
 - 
		
			
				
February 4, 2024 at 4:34 pm #1432935
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
rixiFebruary 5, 2024 at 4:26 am #1432965Hey 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,
IsmaelFebruary 5, 2024 at 6:39 pm #1433022Hi Ismael,
thanks a lot!!!
I will try that out :)Many greetings
rixiFebruary 5, 2024 at 10:05 pm #1433054Hi,
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,
RikardFebruary 8, 2024 at 12:17 pm #1433670This reply has been marked as private.February 8, 2024 at 6:32 pm #1433720Hi,
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,
RikardFebruary 9, 2024 at 10:53 am #1433787Hi Rikard,
i will install a child theme and then i put the code at the end.Thanks a lot!
Many regards Rixi
February 9, 2024 at 11:40 am #1433800 - 
		AuthorPosts
 
- You must be logged in to reply to this topic.
 
