Greetings all,
I'm working on a highly customized site, and have come across a situation that's not exactly something i've encountered before; and it's a multipart piece.
First, we want to allow users (who are signed in) to add a page (not a post, that's a separate issue) from the front end, without having to log into the admin.
The trickier part is that we want that page to automatically be added as a child of the 1st level parent.
For example, if the hierarchy looked like this:
-Dogs
- Little Dogs
- Medium Dogs
-Cats
- Short Hair Cats
- Long Hair Cats
-Birds
etc...
and someone was in any of Dogs, Little Dogs, or Medium Dogs, and they clicked the "Add New" button in order to add "Big Dogs", it would automatically be added as a child of Dogs. So no children would be added to Little Dogs or Medium Dogs.
Additionally, we'd like to have certain custom fields for the page for them to fill out so we could have the values automatically formatted properly when the page is posted. I'm fairly certain we can use the Custom Fields to do this, but how do we label them on the frontend to prompt the user to add them correctly?
Thanks.