social_likes doesn't work on author archive when there are no posts
-
Hi,
I’m using author archives to show author profiles and other information, including their blog posts if they have any.I’d like to be able to add the share buttons to these pages.
I’m hooking the buttons into the top of the author archive pages within a function like this:
if ( is_author() ){ add_action ('genesis_before_loop','social_likes' ); }
This works great IF the author has any posts, however if the author does not have any posts, the social_likes() function fails.
Any thoughts on why this would happen and how to add social_likes buttons to author archives when the author has no posts?
Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘social_likes doesn't work on author archive when there are no posts’ is closed to new replies.