So you want to have Posts that are associated with another Post? You can do this but you would have to store the Post ID as post meta on the new Posts that are created... which would associate the new Post with the Post they were submitted from.
You would then have to write a custom loop to pull in and display posts with that post id stored in custom meta. It is doable but obviously will require customizations to your theme to display these associated posts.
- Add a Post Custom Field to your form
- Edit the Post Custom Field and give it a Field Label (ex. Associated Post)
- For Custom Field Name Select NEW and give it a Custom Field Name (ex. associated_post_id). The custom field name is the meta key, so no spaces.
- Select the Advanced Tab
- In the Default Value select "Embed Post/Page ID" which will insert this into the Default Value: {embed_post:ID}
- Set the Visibility to "Admin Only"
This should now create a field that will store the post ID of the post the form was submitted from as post meta with the key you configured in the custom field name. You can then write a WordPress loop to display all posts with that custom field key that have a value equal to the post id for the post that is being displayed.
Posted 13 years ago on Monday February 7, 2011 |
Permalink