Displaying the image descriptions on attachment page


Note :This snippet works only with the Classical style option. The Classical style option can be enabled in Appearance > Customize > Advanced > Theme Style. More about the theme style option here


The following code will display the description text field of any attachment at the bottom of the attachment page.

Copy and paste this snippet at the very bottom of your functions.php file. (if you are using a child theme, don’t forget to start your functions.php file with <?php )

 

 


Related Snippets you may also like


8 thoughts on “Displaying the image descriptions on attachment page

Comments are closed.