Info
- 7 posts
- 3 voices
- Started 2 years ago by massbase
- Latest reply from olivernielsen
- This topic is not resolved
Control Post Gravatar Link...
-
- Posted 2 years ago #
reference: http://www.massbase.com/topic/testing-pagination
how do i control what the avatar, usename and "member" title... all link too.
the post.php file uses these three respectively... but i cant control the url of these links... i need the gravatar to link to the members profile rather than the users website.
<?php post_author_avatar_link(); ?>
<?php post_author_link(); ?>
<?php post_author_title_link(); ?>
-
- Posted 2 years ago #
help please
-
- Posted 2 years ago #
Put this into your themes
functions.phpfile and call it at will. It may screw up with pingback posts, not sure though.function my_post_author_avatar_profile_link( $size = '48', $default = '', $post_id = 0 ) { if ( ! bb_get_option('avatars_show') ) return false; $author_id = get_post_author_id( $post_id ); if ( $link = get_user_profile_link( $author_id ) ) { echo '<a href="' . esc_attr( $link ) . '">' . bb_get_avatar( $author_id, $size, $default ) . '</a>'; } else { echo bb_get_avatar( $author_id, $size, $default ); } } -
- Posted 2 years ago #
never had a pingback before, and not sure how it looks, but ill give the above code a try.
-
- Posted 2 years ago #
There isn't a
functions.phpfile in any theme, nor in kakumei and in my own theme which is based off of kakumei. -
- Posted 2 years ago #
Then add one. It'll get included automatically by bbPress.
-
- Posted 2 years ago #
Works fine, in 1.x series.
Just use the function <?php my_post_author_avatar_profile_link(); ?> in your post.php
-
This topic is
closed