I
I
Igor2018-06-01 12:13:36
WordPress
Igor, 2018-06-01 12:13:36

How to display an image in index.php from a post?

The page has content. Text, pictures. All this needs to be edited from the admin panel. How to get (display) in the code the picture that the user uploads to the post?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniel Tsioma, 2018-06-01
@daniel_ts

<?php the_content(); ?>- Displays all content, i.e. text and pictures.
If you want to display a post thumbnail:
<?php the_post_thumbnail(); ?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question