How to add custom post type for "attachment"
-
Hi everybody. Iv stuck a little bit. I need to add custom post type for “attachment”. Main idea – i need good looking and easy to use listing of attachments in backend. I need to add additional fields for each image.
So: if i use
register_post_type(‘post’,$args);
or
register_post_type(‘page’,$args);
– i get additional listing of posts and pages, but if i use
register_post_type(‘attachment’,$args);
i get empty list.Can i get list of attachemnts somehow ?
TNX -
You did not specify a blog address or reason for posting when you created this topic.
This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.
If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.
If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.
This is an automated message.
- The topic ‘How to add custom post type for "attachment"’ is closed to new replies.