Even if I’ve been using WordPress since the first release I’m pretty new to both PHP and Worpdress hooks. So I guess I need some advice about how to approach a problem.
Objective: Create a custom post type with separated taxonomy and mandatory custom fields and allow users to submit from the front-end and review only their own entries.
I’d like to do it with a plugin so that I can re-use it and, well, make it public.
On back-end side I don’t have many problems. I’ve been able to create the new post type with its own taxonomy. Still to be fine-tuned but it works.
I have some problem with the front-end. I’m creating the form to submit the posts but I don’t know how to publish it.
- I started with a shortcode to put in a page, but having a form I’d need to add something in the HEAD (before get_header) for verification and I’m not sure how to do it from a shortcode.
- I thought about a template to be applied to an empty page but I don’t know how to make the template “selectable” by the user in the page editor.
- Then I’m still trying to figure out how to publish the list of posts. I thought about using the single-<name>.php but I don’t know if it’s the “cleanest” way.
- I guess that the mandatory fields can managed within the same form without using any specific WordPress function, isn’t it?
Ok, I’m ready to learn! 🙂
- The topic ‘Custom post type and front page submission.’ is closed to new replies.