What is the alternative to “ when it comes to calling Media (image) files in the ‘attachment.php’ file?

Calling the_content from within attachment.php will bring you the Attachment Description. Put the code below on your page and see what you can get from within attachment.php file: while ( have_posts() ) : the_post(); /** * @link https://codex.wordpress.org/Function_Reference/wp_get_attachment_metadata#Related */ $data = array( get_the_ID(), // Gets att ID. get_permalink(), // Gets att page link. get_the_title(), // … Read more

Protecting uploads not working

And the culprit was… my apache config. Please do not forget to edit the apache configuration in /etc/apache2/apache2.conf and add the lines <Directory /var/www/html/> AllowOverride All </Directory> I still have a question. It seems (but it may be related to the fact that the site is still in localhost) that this method does not prevent … Read more