-
AuthorPosts
-
September 23, 2020 at 3:34 am #1247724
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
September 23, 2020 at 1:21 pm #1247847Hey 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,
VictoriaSeptember 24, 2020 at 3:47 am #1248022Sorry, 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
September 25, 2020 at 11:20 am #1248379Hi 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,
VictoriaSeptember 26, 2020 at 4:58 am #1248550Hello, 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
September 26, 2020 at 11:03 am #1248617Hi 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,
VictoriaSeptember 27, 2020 at 4:41 am #1248741This 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.
September 29, 2020 at 11:25 am #1249322Hi yundian,
On the next line you need to add
$meta .= $author;If you need further assistance please let us know.
Best regards,
VictoriaSeptember 30, 2020 at 5:24 am #1249562still not work
October 2, 2020 at 1:22 pm #1250054Hi yundian,
I am closing this thread as there is the thread with the same issue where you’re being helped.
Best regards,
Victoria -
AuthorPosts
- The topic ‘How to add the author meta to the blog grid layout to show the author’s name?’ is closed to new replies.
