Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End My First WordPress Theme – PHP and function output problems Reply To: My First WordPress Theme – PHP and function output problems

#196565
Alen
Participant

@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();