Hi, I’m doing this web:
http://nuevo.siscont.info/curso-siscont-gratuito-online/
I want dates to appear inverted, oldest first.
I tried the code you posted:
……..
add_filter (‘avf_magazine_entries_query’ ‘avf_magazine_entries_custom_query’);
avf_magazine_entries_custom_query function ($ query) {
$ query [‘orderby’] = ‘date’;
$ query [‘order’] = ‘DESC’;
return $ query;
}
……..
but it does not work :(
I’m working with a child template. I put the code in funtions.php, is that correct?
Thank you.
Hey cohetete!
Please refer to this post – http://kriesi.at/documentation/enfold/how-to-add-an-orderorderby-option-to-the-blogpost-sliderportfoliomasonry-grid-element/
Regards,
Yigit
Hi cohetete!
Please see here, https://kriesi.at/support/topic/display-magazine-posts-in-a-random-order/#post-343860.
This line in your code,
avf_magazine_entries_custom_query function ($ query) {
Should look like this.
function avf_magazine_entries_custom_query($ query) {
Cheers!
Elliott