0

I want to display a text and a function in same sentence:

<?php echo 'Right sidebar'; ?>
<?php echo the_content(); ?>

Something like this:

<?php echo 'Right sidebar' the_content(); ?>

But it didin't, it's possible to make it work?

Thanks

0

1 Answer 1

1

Try

<?php echo "Right sidebar".get_the_content(); ?>

Don't use echo for the_content, it's already echoed out, use get_the_content instead.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.