using the_author to include external file
-
Hi, I’m trying to include an external bio file based on the author of the post. Here is how I’m trying to do it:
<?php include(‘./bios/’.the_author().’.php’); ?>
This should dynamically include the proper bio based on the name of the author, however I’m getting a weird bug. It DOES include the file and write it to the page, but it writes the authors name once before it includes the text. so it ends up looking like this:
“BillyBilly lives in Texas and has been ranching cattle for 20 years.”
I hope that makes sense. If you can help, I would really apprecaite it. I’m not a very good programmer, so please be gentle. Thanks a lot.
The topic ‘using the_author to include external file’ is closed to new replies.