Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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?

    #1212512

    Hey 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,
    Rikard

    #1212517

    Hi 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!

    #1212964
    This reply has been marked as private.
    #1213386

    Can someone help me? Please?

    #1213586

    Nobody wants to help me? I’m not bad they just drawn me that way…

    #1213588

    oh .. 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?

    #1214277

    Hi,

    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,
    Ismael

    #1214355

    Thankyou 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)
    Ranieri

    #1215480

    Hi Ranieri,

    This code should be added to your child theme functions.php.

    Best regards,
    Victoria

    #1215561

    Hi 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.

    #1215842

    Hi labuonastrada,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.