How to remove the Template drop down, but keep Parent and Order

When you remove that box from admin (as you’ve written in the comment), you should be able to re-register that box with custom function (modified original) to render the box: if ( post_type_supports($post_type, ‘page-attributes’) ) add_meta_box(‘pageparentdiv’, ‘page’ == $post_type ? __(‘Page Attributes’) : __(‘Attributes’), ‘my_page_attributes_meta_box’, null, ‘side’, ‘core’); function my_page_attributes_meta_box($post) { $post_type_object = get_post_type_object($post->post_type); if … Read more

Show all parts in multipage post

Well, you can turn it off completely or use the following code along with some sort of conditional statement to switch it on or off. The multipage part is set up in the setup_postdata() function in wp-includes/query.php. There’s an action at the end of the function called the_post. If you hook onto that and then … Read more

Highlight wp_nav_menu when category is selected

one solution to your problem using jQuery( put this code in functions.php ) <?php add_action(‘wp_footer’,’ravs_browse_menu’); function ravs_browse_menu(){ if(isset($_GET[‘cat’]) && $_GET[‘cat’] !=”){ ?> <script> jQuery(document).ready(function(){ jQuery(‘#menu-item-299’).addClass(‘current-menu-item’); }); </script> <?php } } ?>

creating a second image attachment template?

attachment.php is not the only template file for attachment display. mime-type based template files get priority. MIME_type.php – it can be any MIME type (image.php, video.php, application.php). For text/plain, in order: text.php plain.php text_plain.php http://codex.wordpress.org/Template_Hierarchy#Attachment_display I expect that that is the issue you are seeing. Check your theme for image.php. There is a further problem … Read more

LaTeX for WordPress strips codes in loop

I don’t know much about that plugin but it applies filters to both the_content and the_excerpt, which seems reasonable to me. I have to assume that your theme is bypassing those filters somehow in the index listing. I can only guess at what it is doing, but you could add a filter to get_the_content and … Read more

Why write markup for index.php?

WordPress might extend the existing template hierarchy in a future version. Your users would get a blank page after an upgrade. So write at least the basic loop, header, footer and pagination. Another point: I use and see at the index.php usually as the default template. I treat its layout as the core concept and … Read more