In wordpress how to get post pecific image gallery for single post? -


I'm new to WordPress and have a very basic knowledge of php. I have created a post and in a specific post I want to show the details of the post in the gallery related to that product and other section in one section. I have added a couple of images to the gallery for some special posts in which the image and description are included. I should show a specific post in a specific page in a specific page in a section and the picture with the featured picture in the description Should be shown in the section.

I think that when you say gallery, you mean the featured image of the post.

So, to get that image, this can be a way

   ID)):? & Gt; & Lt ;? Php $ image = wp_get_attachment_image_src (get_post_thumbnail_id ($ post- & gt; ID), 'single post thumbnail'); ? & Gt; & Lt; Div & gt; & Lt ;? Php ek $ image [0]; ? & Gt; & Lt; / Div & gt; & Lt ;? Php endif; ? & Gt;   

I hope this helps!

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -