-
AuthorPosts
-
March 29, 2016 at 4:43 pm #604681
How do you include the author name and photo in the blogroll?
March 30, 2016 at 6:24 am #604965Hi jells2,
Could you provide us with a link to the site in question so that we can take a closer look please?
Thanks,
RikardMarch 30, 2016 at 6:53 am #604981Sure
March 31, 2016 at 7:34 am #605680Hi!
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,
IsmaelApril 1, 2016 at 11:41 am #606600Hi,
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?
April 2, 2016 at 3:19 pm #606992Hey!
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 -
AuthorPosts
- You must be logged in to reply to this topic.