-
AuthorPosts
-
May 12, 2020 at 7:52 pm #1212346
Hi kriesi team, i’m sorry but i don’t know what’s going on.
When I insert a new magazine or update an existing one it doesn’t show anything in the frontend.
The strange thing is that the preview during editing is displayed correctly.
If I leave the existing magazines unchanged they are still ok but I need to make some small changes and I’m stuck.
Can you help me?May 13, 2020 at 7:47 am #1212512Hey Ranieri,
Thanks for the login details. The Magazine element seems to be working in the Tab Section element on your front page. Is there something we need to do in order to reproduce the problem you are having?
Best regards,
RikardMay 13, 2020 at 8:21 am #1212517Hi Rikard,
thanyou very much, i just edited one of the magazine elements on the home page, the one inside the “Scheda6: Famiglie” tab
This element now shows only two articles in the frontend (and it’s wrong, should be 10), but if you try to look at the preview it displays when editing the page then it is correct there.
In practice it seems that in the frontend does not display all the articles selected with the tag.
I hope to be able to explain myself, my english is “Googled”
Thankyou!May 14, 2020 at 3:22 pm #1212964This reply has been marked as private.May 15, 2020 at 6:44 pm #1213386Can someone help me? Please?
May 16, 2020 at 4:29 pm #1213586Nobody wants to help me? I’m not bad they just drawn me that way…
May 16, 2020 at 4:59 pm #1213588oh .. now it works … better, [life was like a box of chocolates. you never know what you’re gonna get] I haven’t done much but I think it’s because of the selection of posts. I managed to show a date taken from a custom field but the selection of the posts probably still takes place through the creation date.
I wish they were sorted by date (the date taken from the custom field) does anyone know how to do it?May 19, 2020 at 10:42 am #1214277Hi,
Are you using the ACF plugin to create the custom fields? You can adjust the default magazine query and change the item sorting based on the custom field value using the avf_magazine_entries_query filter.
/** Adjust the magazine element query **/ function avf_magazine_entries_query_mod($query, $params) { $query['meta_key'] = 'start_date'; $query['orderby'] = 'meta_value'; return $query; } add_filter('avf_magazine_entries_query','avf_magazine_entries_query_mod', 10, 2);
This sets the orderby parameter based on the value of the custom field named “start_date”.
Best regards,
IsmaelMay 19, 2020 at 3:41 pm #1214355Thankyou Ismael,
no, I don’t use avf, the custom field comes from another plugin (Modern Event Calendar). Could you explain to me where to insert the code you wrote? In magazine.php, directly in “Enfold (Child)” – > “General Style” -> “Rapid CSS” or elsewhere? (I’m a novice)
RanieriMay 23, 2020 at 2:47 pm #1215480Hi Ranieri,
This code should be added to your child theme functions.php.
Best regards,
VictoriaMay 23, 2020 at 7:30 pm #1215561Hi Victoria! Thankyou, thankyou very much! Thanks also to Ismael of course, now is perfect!
You have been of great help to me, I hope you can have great satisfaction from your work.May 24, 2020 at 6:02 pm #1215842Hi labuonastrada,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.