• Resolved kendoori

    (@kendoori)


    Am green about functions, but assume if I use a function a user wouldn’t have to manually add a shortcode for the bio to appear after a post. Am I correct?

    Am new to using functions, so how does one enable this?

    I see reference to this, but where does it go? and how does WordPress know to use it. Am just using the WP 2015 default theme for a blog.

    <?php
    if ( function_exists( ‘get_Sexy_Author_Bio’ ) ) {
    echo get_Sexy_Author_Bio();
    }
    ?>

    https://wordpress.org/plugins/sexy-author-bio/

Viewing 1 replies (of 1 total)
  • Plugin Author Andy Forsberg

    (@penguininitiatives)

    Basically if you put that into your theme’s PHP code it will show the Sexy Author Bio on any page or post using that particular theme template file. It simply checks to see if the plugin is installed and active and if it is, then it displays the Sexy Author Bio.

Viewing 1 replies (of 1 total)
  • The topic ‘Function instead of shortcode?’ is closed to new replies.