WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Custom Post Type Column Content (2 posts)

  1. joshrodgers
    Member
    Posted 2 years ago #

    I am just about finished creating custom columns through the WordPress admin panel.

    The custom post type I am using is called "slides". I figured out how to add the column titles and all of the column content (because they're WordPress defaults)...what I am missing is how do I add content to the "thumbnail" column? Some kind of if statement like: if admin-thumbnail exists display the admin-thumbnail image...which sounds simple enough, I just don't know how to add it to that specific column.

    The code I have so far is: http://pastebin.com/YfuYUW5c.

    Thanks,
    Josh

  2. joshrodgers
    Member
    Posted 2 years ago #

    I modified the following (and the code is working!): http://pastebin.com/HZWgHrZf.

    I got it here: http://justintadlock.com/archives/2011/06/27/custom-columns-for-custom-post-types

    For every column you simply add another case :)

    Thanks,
    Josh

Topic Closed

This topic has been closed to new replies.

About this Topic