Changing the template hierarchy

Try this filter function wpse_63614_restructure_template_hierarchy( $template ){ return get_template_directory().’/filename.php’; } add_filter( ‘template_include’, ‘wpse_63614_restructure_template_hierarchy’ ); The filename would be the file you would want to call in your theme folder. For child themes you would use get_stylesheet_directory instead. EDIT: Or as suggested by Chip Bennett and what I too feel would be better; you can use … Read more

How do themes render caption texts in extended markup (e.g. “wp-caption” paragraphs)

That caption shortcode is built into WordPress. It should generate the same markup for any theme, unless the theme or a plugin has unregistered it and registered a replacement. I don’t know if that is the case with your theme or with TwentyEleven. Look for ‘img_caption_shortcode’ in your theme files, probably functions.php. If your theme … Read more

How do I access the media settings

The sizes are stored in the options table in the database, so you can grab values with get_option(‘large_size_w’); The values stored in the DB are: thumbnail_size_w thumbnail_size_h medium_size_w medium_size_h large_size_w large_size_h

Set default screen option for appearance -> menus

This option is stored in the wp_usermeta table with the meta_key name of metaboxhidden_nav-menus. If we hide all the boxes, this is the meta_value of the option: array( “nav-menu-theme-locations”, “add-custom-links”, “add-post”, “add-page”, “add-portfolio”, “add-category”, “add-post_tag”, “add-post_format”, “add-location” ) There is one CPT, portfolio. If we wanted for it to be always visible every time the … Read more