Tagged: x
-
AuthorPosts
-
January 21, 2017 at 4:30 am #1339518
SebHorParticipantHello!
I played around with some suggestions from the forum and the available shortcode but came to realize that I would need your help.
Here is my situation.. I
m posting articles mainly from two different authors on our blog page. I want to display a brief "about the author" section at the end of every post which should look like the shortcode you already provide on that topic. What do I have to do to display the profile of the authors even though Im posting the articles?Many thanks,
SebastianJanuary 21, 2017 at 4:31 am #1339519
SebHorParticipantThis reply has been marked as private.January 21, 2017 at 5:03 am #1339540
ChristopherModeratorHi there,
Please add following code in child theme’s functions.php file :
add_filter( 'the_content', 'about_author' ); function aabout_author($content){ if ( is_singular('post') ) { $content .= do_shortcode('[author title="About the Author"]'); } return $content; }Hope it helps.
January 21, 2017 at 5:18 am #1339547
ThaiModeratorHi There,
Please add the following code under functions.php file locates in your child theme:
add_action( 'x_after_the_content_end', 'add_to_single_posts' ); function add_to_single_posts() { if ( is_singular( 'post' ) ) { echo do_shortcode( '[author title="About the Author"]' ); } }Hope it helps 🙂
January 21, 2017 at 5:41 am #1339555
SebHorParticipantThanks for the quick answer.
How can I change the picture and the name of the Author plus give a brief summary about the author?Thanks,
SebastianJanuary 21, 2017 at 5:52 am #1339563
ChristopherModeratorHi there,
Add information about author under Users -> Profile, see the attachment.
Hope it helps.
January 21, 2017 at 10:30 am #1339695
SebHorParticipantThanks for the swift reply but how can I select authors for different posts?
January 21, 2017 at 5:20 pm #1339947
Rue NelModeratorHello There,
If you want to have a different author in your post, you will have to edit each of the posts and change the author from there. Please check this links:
https://codex.wordpress.org/Writing_Posts
https://en.support.wordpress.com/posts/edit-posts-screen/#bulk-editHope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1339518 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
