Skip Navigation

[Resolved] Building a storytelling website

This thread is resolved. Here is a description of the problem and solution.

Problem:

When people click the create story form link, how can I automatically associate the new story to the topic?

Solution:

I suggest you setup one-to-many relationship between post type "Topic" and "Story".

In a single "Topic" post, display a child form link, user click this link redirect him to page with a post form for creating new "Story" post,

Relevant Documentation:

https://toolset.com/documentation/post-relationships/selecting-parent-posts-using-forms-create-child-items/

This support ticket is created 5 years, 12 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by deanL 5 years, 12 months ago.

Assisted by: Luo Yang.

Author
Posts
#1185645

I'm building a community storytelling website. Basically, site admin will create individual topics, then registered users add their story to the topic. It's some sort like forum except this is only one level deep. Ie:

- Topic
- - Stories

When user looks at a topic post, the can click the button on the post that says "Share your story" and redirected to story creation form and submit their story from frontend.

This is what I have done so far:

1. Created topic post type
2. Created story post type
3. Created story post form
4. Used Toolset layout for topic post type and added link to story post form

The challenge I'm facing now is: When people click the create story form link, how can I automatically associate the new story to the topic?

#1185715

Hello,

I suggest you setup one-to-many relationship between post type "Topic" and "Story".
https://toolset.com/documentation/post-relationships/how-to-set-up-post-relationships-using-toolset/

In a single "Topic" post, display a child form link, user click this link redirect him to page with a post form for creating new "Story" post,

See our document:
https://toolset.com/documentation/post-relationships/selecting-parent-posts-using-forms-create-child-items/

#1185800

My issue is resolved now. Thank you!