WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Normal and Custom Post Type Columns the same

[Resolved] Normal and Custom Post Type Columns the same

  • I have a piece of code that display columns for my custom post type “slides”. Basically the custom post type mirrors the columns that you see in the normal post column window, plus it includes an additional “thumbnail” column. What I would like to do is extend the thumbnail capability to a normal post column.

    The code I am using looks like: http://pastebin.com/n7bZn2Nd

    For the first function I added the following after the add_filter: add_filter('manage_posts_columns', 'custom_columns');

    which worked great! Then I tried the second function…I added another action after add_action, which looks like: add_action('manage_posts_custom_column', 'image_column1', 10, 2);

    However, this time it didn’t work…I get two images showing up for my custom post type and no images for the normal post.

    Any ideas?
    Thanks, Josh

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Normal and Custom Post Type Columns the same’ is closed to new replies.
Skip to toolbar