WordPress.org

Forums

Author Bio Shortcode
[resolved] summary of bio with read more (3 posts)

  1. Frederic Legrand
    Member
    Posted 1 year ago #

    how can i show the bio of a user in summary view with a read more link to his profile page?
    I want to add the bio at the end of custom post type with only 5 or 10 first lines linking to the bio page

    http://wordpress.org/plugins/author-bio-shortcode/

  2. Philip John
    Member
    Plugin Author

    Posted 1 year ago #

    Hiya,

    By "summary view" do you mean the excerpt? If so, it isn't possible to show it there as WordPress doesn't allow shortcodes in the excerpt.

    Instead, you'd have to add it to your template using the do_shortcode() function, like so:

    <?php
    do_shortcode('[author_bio_shortcode]');
    ?>

    Thanks,
    Phil

  3. Frederic Legrand
    Member
    Posted 1 year ago #

    thanks a lot

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Author Bio Shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.