Title: [Plugin: WP User Frontend] Custom Post Type
Last modified: August 20, 2016

---

# [Plugin: WP User Frontend] Custom Post Type

 *  [dylanseeger](https://wordpress.org/support/users/dylanseeger/)
 * (@dylanseeger)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-user-frontend-custom-post-type/)
 * How does one set the post type to be a custom post type (ex: portfolio).
 * Thanks!
 * Dylan
 * [http://wordpress.org/extend/plugins/wp-user-frontend/](http://wordpress.org/extend/plugins/wp-user-frontend/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [Tareq Hasan](https://wordpress.org/support/users/tareq1988/)
 * (@tareq1988)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-user-frontend-custom-post-type/#post-2588036)
 * for adding a custom post type post, use the shortcode [wpuf_addpost post_type
   =”portfolio”].
 * Similarly for dashboard [wpuf_dashboard post_type=”portfolio”]
 *  Thread Starter [dylanseeger](https://wordpress.org/support/users/dylanseeger/)
 * (@dylanseeger)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-user-frontend-custom-post-type/#post-2588060)
 * Awesome!!! Thank you!
 *  [zedjasper](https://wordpress.org/support/users/zedjasper/)
 * (@zedjasper)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-user-frontend-custom-post-type/#post-2588240)
 * Great plugin!
 * How do I allow non-logged in users to post?
 *  [skinnytires](https://wordpress.org/support/users/skinnytires/)
 * (@skinnytires)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-user-frontend-custom-post-type/#post-2588248)
 * Tareq, you also have a “Show Post Type” select menu in the admin that says: “
   Select the post type that the user will see in the dashboard” — though no matter
   what I do, it never recognizes custom post types — only displays “post” or “page.”
 * + As a test, if I call wpuf_get_post_types() I can get all custom post types 
   that I have created, A-OK.
    + However, when wpuf-admin.php calls “global $wpuf_options”
   which calls info from wpuf-value-options.php (which contains the call to wpuf_get_post_types()),
   it never recognizes custom post types…
 * Am I missing something? A process chronology issue? Something to do with when
   WP initializes the global values?
 * + Also, I see a changelog for 0.6 but not latest 0.7?
 * Thanks much Tareq!
 *  [skinnytires](https://wordpress.org/support/users/skinnytires/)
 * (@skinnytires)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-user-frontend-custom-post-type/#post-2588249)
 * Actually, I just added a hack to wpuf_options_value.php as the “select” case 
   is writing the Select html:
 *     ```
       <?php
                                       /* Hack to properly expose the full list of Custom Post Types
                                       * Note: the original method of calling wpuf_get_post_types() earlier in the process via
                                       * the global $wpuf_options variable does not produce the full, acurate list of Custom Post Types
                                       */
                                       if ( $element['name'] == 'wpuf_list_post_type' ) {
                                       	$element['options'] = wpuf_get_post_types();
                                       }
                                       ?>
       ```
   
 * Hope this helps!
 *  Plugin Author [Tareq Hasan](https://wordpress.org/support/users/tareq1988/)
 * (@tareq1988)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-user-frontend-custom-post-type/#post-2588250)
 * Yes, maybe the function is being called before registering the post types.
 * BTW, you can show the dashboard like this `[wpuf_dashboard post_types="events"]`
 * [changelog](http://wordpress.org/extend/plugins/wp-user-frontend/changelog/)
 *  [Max](https://wordpress.org/support/users/vangeva/)
 * (@vangeva)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-user-frontend-custom-post-type/#post-2588293)
 * Thank you! Tareq
 * I have assigned the Post Type to ‘portfolio’. Which all works fine.
 * BUT The Categories drop down still shows the ‘posts’ categories and not the portfolio-
   types
 * How can I change this?
 *  Plugin Author [Tareq Hasan](https://wordpress.org/support/users/tareq1988/)
 * (@tareq1988)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-user-frontend-custom-post-type/#post-2588294)
 * Sorry, custom taxonomies are not supported that way yet. Only custom post type
   can be assigned right now.
 *  [ersaldivar](https://wordpress.org/support/users/ersaldivar/)
 * (@ersaldivar)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-user-frontend-custom-post-type/#post-2588295)
 * This may not be related, but:
 * I would like for the submissions NOT to be posted in the “post” section or “pages”
   section of my WP.
 * On my site; I have a Game Reviews section where I post different reviews.
 * Could I have it submit to this section, instead of the “Posts”?
 *  [Tran Dinh Khanh](https://wordpress.org/support/users/dinhkhanh/)
 * (@dinhkhanh)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-user-frontend-custom-post-type/#post-2588298)
 * To show custom taxonomy, I just hacked some code.
    In wpuf-add-post.php, line
   112, I modified like this (and it worked well).
 *     ```
       $taxonomy ='';
       if($post_type=="place"){
            $taxonomy ="places";
       }
       else $taxonomy = "category";
   
       if ( $cat_type == 'normal' ) {
           wp_dropdown_categories( 'show_option_none=' . __( '-- Select --', 'wpuf' ) . '&hierarchical=1&hide_empty=0&orderby=name&name=category[]&id=cat&show_count=0&title_li=&use_desc_for_title=1&class=cat requiredField&exclude=' . $exclude.'&taxonomy='.$taxonomy );
       } else if ( $cat_type == 'ajax' ) {
       wp_dropdown_categories( 'show_option_none=' . __( '-- Select --', 'wpuf' ) . '&hierarchical=1&hide_empty=0&orderby=name&name=category[]&id=cat-ajax&show_count=0&title_li=&use_desc_for_title=1&class=cat requiredField&depth=1&exclude=' . $exclude.'&taxonomy='.$taxonomy );
       ```
   
 * with `place` is custom post_type, `places` is custom taxonomy.
 * If you use `wpuf_category_checklist` function, just add `wpuf_category_checklist(
   $tax = $taxonomy);`
 * Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘[Plugin: WP User Frontend] Custom Post Type’ is closed to new replies.

 * ![](https://ps.w.org/wp-user-frontend/assets/icon-256x256.gif?rev=2818776)
 * [User Frontend: AI Powered Frontend Posting, User Directory, Profile, Membership & User Registration](https://wordpress.org/plugins/wp-user-frontend/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-user-frontend/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-user-frontend/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-user-frontend/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-user-frontend/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-user-frontend/reviews/)

 * 10 replies
 * 7 participants
 * Last reply from: [Tran Dinh Khanh](https://wordpress.org/support/users/dinhkhanh/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-user-frontend-custom-post-type/#post-2588298)
 * Status: not resolved