How to get posts to custom post types.
-
Hi,
I am using your plugin for a gaming website.
I want users to be able to submit articles to the site and i’ve tried to setup the form to get the articles to post to their respective custom post types (Xbox Article, Playstation Articles, PC Articles, Nintendo Articles, Non-Review Articles). I have selected them in the settings page and this is my current oode;
[fu-upload-form class=”required” title=”Submit Article”]
[input type=”text” name=”post_title” id=”title” class=”required” description=”Article Title” multiple=””]
[textarea name=”post_content” class=”textarea” id=”ug_caption” description=”Article/Review”]
[input type=”file” name=”photo” id=”ug_photo” class=”required” description=”Images for Article (minimum of 1 required)” multiple=””]
[select name=”Platform” name=”post_type” class=”select” description=”Platform” values=”Xbox, Playstation, PC, Nintendo, Non-Review”]
[input type=”submit” class=”btn” value=”Submit”]
[/fu-upload-form]Is there a way i can get the users to select what post type they post to? The post types in the url are coming up as follows respectively;
Xbox = ‘post_type=it_xbox’
Playstation = ‘post_type=it_playstation’
PC = ‘post_type=it_pc’
Nintendo = ‘post_type=it_nintendo’
Non-Review = ‘post_type=it_nonreview’I’ve tried to figure out the ‘post_type’ shortcode however i’m not getting very far. I’m basically trying to make it so when the user’s select Xbox from the dropdown that the article will post to Xbox Articles in the backend of wordpress.
Thanks for your help in advance.
- The topic ‘How to get posts to custom post types.’ is closed to new replies.