Function instead of shortcode?
-
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();
}
?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Function instead of shortcode?’ is closed to new replies.