Looking for #Wordpress advice.
I set up a blog for my mom to post vacation pictures. She's using the Wordpress iPhone app to upload everything and all the pictures she puts up don't link to their media when you click them.
I added "Simple #Lightbox" plugin to her site but it only works if I go back and set the image "Link to" to "Media File" on each one on new posts and in all the posts she's already made.
She's got 10-15 pictures embedded in every post.
Is there a way to do this in bulk?
@vees Hi Rob! I'm not sure there is a handy way for existing posts, but you can automatically turn this on for her next posts by adding the following little PHP snippet to the functions.php file of your child theme, or by just using a plugin such as Code Snippets 🖝 https://wordpress.org/plugins/code-snippets/
The snippet:
add_action( 'after_setup_theme', function() {
update_option( 'image_default_link_type', 'file' );
});
#Tested #Approved #WordPress cc @itsjustdj@tech.lgbt