Tag Info

Hot answers tagged


You can override many of the Gallery Settings using the media_view_settings filter: /** /* Gallery Default Settings /* @param Array $settings /* @return Array $settings */ function theme_gallery_defaults( $settings ) { $settings['galleryDefaults']['columns'] = 5; return $settings; } add_filter( 'media_view_settings', 'theme_gallery_defaults' ); To ...


In your comments you mentioned that you are still new to wordpress, and I believe you don't have a full understanding of the template hierarchy. Essentially, wordpress looks for certain templates depending on what post type is being displayed. And if it can't find any, the last resort is always the index.php file. Here is a flowchart that demonstrates ...

Only top voted, non community-wiki answers of a minimum length are eligible