Title: Custom Post types assistance
Last modified: August 30, 2016

---

# Custom Post types assistance

 *  [craigcmurray](https://wordpress.org/support/users/craigcmurray/)
 * (@craigcmurray)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/custom-post-types-assistance/)
 * I am working on a plugin using Custom Post types. These custom post types will
   be events. people will be registered (not from front end right now) for an event
   by an administrator and assigned to a specific age group for that event. I have
   the custom post type created and have added all the custom fields i need. I have
   the list and detail pages working. The next step is to show all people registered
   for the event organized by age groups. Would it be best to create users in wordpress(
   as ultimately at a later date i will have them login and register themselves).?
   How would i add on the admin side the ability to assign a user to a an age group
   within an event? how would i show the list of users assigned to each age group
   on the front end?
 * thank you in advance for your assistance.

Viewing 1 replies (of 1 total)

 *  [RossMitchell](https://wordpress.org/support/users/rossmitchell/)
 * (@rossmitchell)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/custom-post-types-assistance/#post-6656890)
 * > Would it be best to create users in wordpress (as ultimately at a later date
   > i will have them login and register themselves).?
 * Yes, there is a plugin that will create users from a CSV file, I generate these
   from a spreadsheet. Maybe you will add some custom fields to the users table,
   or have your own table keyed on WordPress ID. You will have a much easier expansion
   to your mature user login and registration if you start in that direction now.
 * > How would i add on the admin side the ability to assign a user to a an age 
   > group within an event?
 * Use the Role or WordPress capabilities attribute to control access to this. Either
   in a custom page template OR inside the shortcode invoked function that does 
   the admin stuff, test for the user role or capability and exit with an error 
   message if they shouldn’t be there.
    Your regular attendee will be a subscriber,
   make your age group assigners contributors.
 * > how would i show the list of users assigned to each age group on the front 
   > end?
 * Use shortcodes in the text of a page and have the shortcode invoke code in your
   plugin that does a select on the database and displays the results in a table.
 * If you are not already familiar with shortcodes then get familiar with this:
   
   [http://codex.wordpress.org/Shortcode_API](http://codex.wordpress.org/Shortcode_API)
   Also appreciate that by default shortcodes are not active in widgets, details
   and a fix here: Enable shortcodes in widgets, from: [https://digwp.com/2010/03/shortcodes-in-widgets/](https://digwp.com/2010/03/shortcodes-in-widgets/)

Viewing 1 replies (of 1 total)

The topic ‘Custom Post types assistance’ is closed to new replies.

## Tags

 * [categories](https://wordpress.org/support/topic-tag/categories/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 2 participants
 * Last reply from: [RossMitchell](https://wordpress.org/support/users/rossmitchell/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/custom-post-types-assistance/#post-6656890)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
