Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I was wondering if there is a way to hook into the column titles in the "All Posts" admin page to modify them. For instance, I would like to change "Post" to "<strong>Headline</strong>". Are there any hooks that would let be do this without modifying the WordPress core code?

I have found some information about adding columns and modifying custom post type columns, but I could not find any information on modifying the columns that are standard in the "All Posts" screen.

share|improve this question
    
You're not going to get a lot of help writing custom code for a version of WordPress that was published over 3 years ago (2.8 was released June 2009). Instead, I'd look to removing the roadblocks that are preventing an upgrade ... –  EAMann Jul 12 '12 at 23:28
    
Unfortunately that's not possible since I am working for a small division of a large organization that manages dozens of sites on a single old WordpressMU install. I am editing the question to make it more broadly applicable, and I have found an answer that I could post if this thread is re-opened. –  Andrew Jul 12 '12 at 23:32
2  
I'll re-open so you can post your solution ... generally, though questions about specific WP versions that are that old will be closed as Too Localized. You should really put some pressure on the organization to update; there have been loads of security and speed improvements in the past 3 years ... –  EAMann Jul 12 '12 at 23:37
    
Thank you. I appreciate it! I have talked the division that I am working for to move to a stand-alone WordPress site, primarily for security reasons, but I doubt I'll be able to put too much pressure on the parent company. –  Andrew Jul 12 '12 at 23:58
    
Search for +sort +column, order by newest and start at the last page. Some of our old answers may help you. –  toscho Jul 13 '12 at 0:41

1 Answer 1

I found that there is a filter, manage_posts_columns (and a related manage_pages_columns), that lets you modify the column headers on the "All Posts" admin screen. Using this filter is pretty simple, as the filtering function takes in an associative array with the short name of the column as a key and the heading as the value. You just need to return a modified version of the array, and you're set:

function all_posts_modify_column($columns) {
    $columns['title'] = '<strong>Headline</strong>';
    return $columns;
}
add_filter('manage_posts_columns', 'all_posts_modify_column');
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.