I use the latest Enfold, have read the old thread in 2017: https://kriesi.at/support/topic/add-author-to-blog-grid-layout/
but the code is not working:
$author = get_the_author_meta( ‘display_name’, $entry->post_author );
how to solve the problem? thanks
Hey yundian,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
Victoria
Sorry, can’t give you the company website, we don’t change any original code in latest Enfold, so you can check the problem in any latest enfold website.
Waiting for your reply
Hi yundian,
So how did you add the code?
Can you please describe the steps that you took and where you put the code?
Best regards,
Victoria
Hello, just as that thread said, I find the config-templatebuilder > avia-shortcodes > postslider.php
$meta .= “<time class=’slide-meta-time updated’ $markup>” .get_the_time(get_option(‘date_format’), $the_id).”</time>”;
and add this code below it:
$author = get_the_author_meta( ‘display_name’, $entry->post_author );
and save it then clear all cache, but nothing happened, the author still not display in grid layout blog, just show time and comments
you can check the problem in any latest Enfold website
Hi yundian,
Well, in this code there is no echo to display the name, you’re just getting it in the variable and do not have the line to actually display it.
Best regards,
Victoria
This is the code to solve the problem in that thread, so what should i do in latest Enfold as you said the code is not working.
Hi yundian,
On the next line you need to add
$meta .= $author;
If you need further assistance please let us know.
Best regards,
Victoria
still not work
Hi yundian,
I am closing this thread as there is the thread with the same issue where you’re being helped.
Best regards,
Victoria