Result in custom post type not as desired
-
Hello,
I’ve successfully gotten file submissions to be stored as my custom post type. However, there are some things that are kind of strange that I am hoping can be fixed.
-There is no approve button under Custom Post Type >> Manage UGC
-The post shows up as Private
-The image info shows up in the content. I’d rather have it show up in the thumbnail. I think maybe this part can be done by utilizing a hook, but can you clue me into exactly how that is done? I am not sure how to manipulate the end result…Code from my functions.php:
add_action('init', 'custom_post_types'); function custom_post_types(){ register_post_type('memory_quilt', array( 'labels' => array( 'name' => __('Memory Quilt'), ), 'menu_icon' => 'dashicons-heart', 'public' => true, 'has_archive' => true, 'supports' => array('title', 'editor', 'thumbnail', 'custom-fields'), 'exclude_from_search' => true, ) ); }
The shortcode I am using:
[fu-upload-form suppress_default_fields="true" title="Add an image and note about your loved one below. After approval, it will be added to the memory quilt. Thank you." post_type="memory_quilt" form_layout="post_media" append_to_post="true"] [input type="text" name="dmq_submitter" id="dmq-submitter" class="required" description="Your Name"] [input type="text" name="post_title" id="dmq-email" class="required" description="Your Email Address"] [input type="text" name="dmq_first" id="dmq-first" class="required" description="First Name of Loved One"] [input type="text" name="dmq_note" id="dmq-note" description="Include a note about loved one (optional)"] [input type="file" name="photo" id="dmq-photo-submission" class="required" description="Attach a Photo of your Loved One"] [input type="submit" class="btn" value="Submit"] [recaptcha] [/fu-upload-form]
Thanks! This plugin seems almost perfect. I hope I can figure out these last couple of items so that I can use it to build something cool!! ??
- The topic ‘Result in custom post type not as desired’ is closed to new replies.