Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #775209

    Hi There,
    I have used post slider to display events in a grid format, and most of the time the entries correctly display event date instead of post date, however on occasion, the event will display post date instead. Could you please help me figure this out? I can’t see any difference in settings, between some of these events and can’t find where the error is occuring. Link in private area.

    If you scroll down, you will see there are 2 events, such as spiritual ocean retreat and then 2017 new life awakening retreat. The ocean retreat is displaying post date, however the awakening retreat is displaying event date. Is there a way to make sure they always display event date instead of randomly selecting between the two? thanks

    #776108

    Hey!

    Please go to enfold/config-templatebuilder/avia-shortcodes/postslider.php file and find

    
    $meta .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>";
    

    and change it into

    
    $meta .= "<time class='slide-meta-time updated' $markup>" .tribe_get_start_date( $entry->ID )."</time>";
    

    We would recommend you to use a child theme – http://kriesi.at/documentation/enfold/using-a-child-theme/ and apply the changes there – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/

    Best regards,
    Yigit

    #794571

    Thanks, that worked!

    #794663

    Hi,

    Great, glad we could help. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #1042131

    Enfold 5.0 same issue, but diffrent file.

    I did copy the hole folder structure and the file, but the file is not beeing load in the child theme folder.

    Please fix as this is not only strange but stupid.

    I did disable:

    if(1==1 OR ($show_meta && !empty($excerpt)))

    as: $show_meta, where is that defined? excerpt is empty by all my posts. 3 have date shown, 8 not. Everything with the same setup. I can clone posts, some have, some not of them…

    #1044662

    Hi,

    Did you add this filter?

    // http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/

    Which shortcode are you trying to override?

    Best regards,
    Ismael

    #1046338

    When I copy the file:
    /themes/enfold/config-templatebuilder/avia-shortcodes/postslider/postslider.php

    to here:
    /themes/enfold-child/config-templatebuilder/avia-shortcodes/postslider/postslider.php

    and make changes, they are not applied!

    So I edited the ORIGINAL FILE directly:
    /themes/enfold/config-templatebuilder/avia-shortcodes/postslider/postslider.php Line 618
    if(1==1 OR ($show_meta && !empty($excerpt)))

    The 1==1 makes that its everythime valid and ALWAYS the date is shown below the posttitle. Otherwise, It gets shown from time to time. ALL posts have empty excerpt.

    The show_meta is loaded via:
    $show_meta = !is_post_type_hierarchical($entry->post_type);
    But, all posts are the same. No hierarchical as I would say.

    I do not have any filter or actions to say there “Always” true.

    How can I copy the shortcode correctly, that the one from child-theme gets loaded and not from original folder?

    #1047059

    Hi,

    Thanks for the update. Please remove those files and then follow the instructions here:

    // http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/

    You have to add that filter first and create a folder called “shortcodes” inside your child theme directory. You can then copy any shortcode files inside.

    Best regards,
    Ismael

    #1072225

    Did work, thanks

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Event Date in Post Slider sometimes displaying and sometimes not’ is closed to new replies.