Tagged: Event calendar
-
AuthorPosts
-
April 10, 2017 at 1:50 am #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
April 11, 2017 at 3:26 pm #776108Hey!
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,
YigitMay 17, 2017 at 2:32 am #794571Thanks, that worked!
May 17, 2017 at 6:33 am #794663Hi,
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,
RikardDecember 7, 2018 at 5:38 pm #1042131Enfold 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…
December 13, 2018 at 4:01 am #1044662Hi,
Did you add this filter?
Which shortcode are you trying to override?
Best regards,
IsmaelDecember 17, 2018 at 3:41 pm #1046338When I copy the file:
/themes/enfold/config-templatebuilder/avia-shortcodes/postslider/postslider.phpto here:
/themes/enfold-child/config-templatebuilder/avia-shortcodes/postslider/postslider.phpand 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?
December 19, 2018 at 1:17 am #1047059Hi,
Thanks for the update. Please remove those files and then follow the instructions here:
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,
IsmaelFebruary 27, 2019 at 9:53 am #1072225Did work, thanks
-
AuthorPosts
- The topic ‘Event Date in Post Slider sometimes displaying and sometimes not’ is closed to new replies.