Post content, PHP help

admin2025-06-04  2

I am having some difficulty displaying post data. I am entering my PHP into a PHP element of my front end page builder.

All I want is the post title wrapped in an H4 tag followed by the post content.

When I enter this on its own it works; <?php echo get_the_title(); ?>

And when I enter this on its own it also works: <?php echo get_the_content(); ?>

But when I add both snippets into the same PHP container it gives me a 404 error on the frontend.

Can anyone please help with this?

Thanks

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748969827a315255.html

最新回复(0)