Change the default settings of a gallery
-
Hello everybody,
I’m trying to change the default settings of the WP gallery.
I mean, the number of columns, and the link.
I was looking for some filter, but I did’t find them.I see, as an example, that the default number of column is declared in the media-template.php, like this:
<option value="<?php echo esc_attr( $i ); ?>" <?php selected( $i, 3 ); ?>>
so I think there’s no way to change it ( of course I don’t want to touch the core! ).
I can go to filter the_content ( like show in zeo’s blog ). But I don’t like to add filter to the_content, because I think it uses a lot of resources on every page.
So is there someone that know how to do that?
thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Change the default settings of a gallery’ is closed to new replies.