Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #604681

    How do you include the author name and photo in the blogroll?

    #604965

    Hi jells2,

    Could you provide us with a link to the site in question so that we can take a closer look please?

    Thanks,
    Rikard

    #604981

    Sure

    #605680

    Hi!

    The author meta info is not included by default if you set the blog style to grid. You have to modify the config-templatebuilder > aviashortcodes > postslider.php file in order to include those info. Regarding the single post style, go to the Enfold > Blog Layout panel then set the Single Post Style to multi author.

    Best regards,
    Ismael

    #606600

    Hi,

    I have pasted $author = get_the_author(); in config-templatebuilder > aviashortcodes > postslider.php but not showing up anything. Where do paste it?

    The blog layout was already set to multi author for Single Post Options. Any other workaround?

    #606992

    Hey!

    The blog layout was already set to multi author for Single Post Options. Any other workaround?

    Edit includes > loop-index.php file, look for this code around line 136:

    $blog_meta_output = "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span></a>";
    

    .. replace it with:

    $blog_meta_output = "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span><span class='author-name'>".$author_name."</span></a>";
    

    I have pasted $author = get_the_author(); in config-templatebuilder > aviashortcodes > postslider.php but not showing up anything. Where do paste it?

    Look for this code inside the postslider.php file:

    $output .=  "<h3 class='slide-entry-title entry-title' $markup><a href='{$link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>";
    

    .. below, add this:

    $author_name = apply_filters('avf_author_name', get_the_author_meta('display_name', $entry->post_author), $entry->post_author);
    						$author_email = apply_filters('avf_author_email', get_the_author_meta('email', $entry->post_author), $entry->post_author);
    
    						$gravatar_alt = esc_html($author_name);
    						$gravatar = get_avatar($author_email, '81', "blank", $gravatar_alt);
    						$link = get_author_posts_url($entry->post_author);
    						$output .=  "<a href='{$link}' class='post-author-format-type'>".$author_name."</a>";

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.