Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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

    #1247847

    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

    #1248022

    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

    #1248379

    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

    #1248550

    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

    #1248617

    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

    #1248741

    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.

    #1249322

    Hi yundian,

    On the next line you need to add

    
    $meta .= $author;
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1249562

    still not work

    View post on imgur.com

    #1250054

    Hi yundian,

    I am closing this thread as there is the thread with the same issue where you’re being helped.

    Best regards,
    Victoria

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘How to add the author meta to the blog grid layout to show the author’s name?’ is closed to new replies.