Forum Replies Created
Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
Hey,
Thank you for your reply. I realized that the code has to be moved inside the loop.
Now I did it like that, and it works perfectly:echo '<span class="vcard author"><span class="fn"><a href="'.get_author_posts_url(get_the_author_meta( 'ID' )).'">'; $author_id = get_the_author_meta( 'ID' ); $vorname = get_user_meta( $author_id, 'first_name', true); $nachname = get_user_meta( $author_id, 'last_name', true); $heading = $vorname." ".$nachname; echo $heading; echo '</a></span></span>';
Eva
Hey Rikard,
Sorry for my late reply.
You will find the admin login in the private section.Thanks for having a look!
Here is the code I use (includes > loop-index.php):
$author_id = get_query_var( 'author' ); if(empty($author_id)) $author_id = get_the_author_meta('ID'); $vorname = get_user_meta( $author_id, 'first_name', true); $nachname = get_user_meta( $author_id, 'last_name', true); $heading = $vorname." ".$nachname;
And the output in the <header>:
echo '<span class="blog-author minor-meta">'.__('by','avia_framework')." "; echo '<span class="entry-author-link" '.avia_markup_helper(array('context' => 'author_name','echo'=>false)).'>'; // DGKV: Hier wird der Name und der Link zum Autor ausgegeben echo '<span class="vcard author"><span class="fn"><a href="'.get_author_posts_url(get_the_author_meta( 'ID' )).'">'; echo $heading; echo '</a></span></span>'; echo '</span>'; echo '</span>';
What is wrong there?
The problem only occurs on the blog page created with the shortcode. If you have a look in a category or at the single blog post all is fine there.
May 20, 2015 at 5:39 pm in reply to: Search results: Blank excerpts for pages created with advanced layout editor #447321Hey Elliott,
Thank you, now I understand how it works.
Eva
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)