Hi Enfold-Team,
I have recognized the following problem in Enfold:
I have several posts in the category news with a pdf-link in the title and no actual content.
Because of the lack of content the date of each post is not showing in the grid layout.
As soon as I add some text the date pops up.
I found two threads already adressing this problem:
Blog grid not showing meta unless there’s also content
and a recent one with no current solution:
Display date on blog grid layout
First thread from 2015 even mentions to modify
enfold\config-templatebuilder\avia-shortcodes\postslider.php line 375:
if($show_meta && !empty($excerpt))
This is not working anymore though – breaks the whole website (original code at line 375 : “public function html()” )
Could you provide me with the right code and where to insert it or any other way to solve this problem?
Thanks in advance for your help,
greetings
Niemitz
Hey Niemitz,
Thank you for using our theme.
You have to modify around line 599 you find:
if($show_meta && !empty($excerpt))
replace with:
if( $show_meta )
This will show the metadata like date for every post.
Best regards,
Günter
Hi Günter,
thanks for your fast reply.
Your code is working as expected.
have a nice day