Home › Forums › Back End › My First WordPress Theme – PHP and function output problems › Reply To: My First WordPress Theme – PHP and function output problems
February 22, 2015 at 6:41 pm #196565
@adjmedia just a note, in @BenWalker code you don’t need to put
echo in front of
<?php the_title(); ?>.
In WordPress if the function starts with
the_ it already echos the value. If you’re trying to get the value and do something with it you’ll need to use:
$author = get_the_author(); echo $author; # is the same as the_author();