uploads – What is the different to “ when it comes to calling Media (image) recordsdata in the ‘attachment.php’ file?


I am in the process of placing together my own WordPress Theme. Up until now, I have been utilizing the ‘single.php’ file to act as a Template for both my Blogs and Media Files. In reference to my Media recordsdata, I have been utilizing the <?php the_content(); ?> tag to call such photographs.

I have now reached the stage, where I have created an ‘attachment.php’ file for the various Media recordsdata. I have seen that the <?php the_content(); ?> does not work in mentioned file, not like in the ‘single.php’ file.

What is the related different to <?php the_content(); ?> when it comes to calling photographs in the ‘attachment.php’ file?


Source link

Leave a Reply