Skip Navigation

[Resolved] good direction

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

Problem:

On one site I want to present 15 drawings.

I want people to register with a form (username, email) and be able to comment with a text field of 1 to 15 drawings.

So that the different legends are inscribed under each of the drawings with the identifier and the date

Solution:

You can setup one-to-many relationship between post types "drawings" and "my-comments", then follow our document to display the related "my-comments" posts in single "drawings" post:

https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-many-related-items

And you can setup a post form for creating new child "my-comments" post, and display it in single "drawings" post:

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

Relevant Documentation:

This support ticket is created 4 years, 1 month 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 4 replies, has 2 voices.

Last updated by kayser 4 years ago.

Assisted by: Luo Yang.

Author
Posts
#1558359

Hi
it's for a literary game.
on one site I want to present 15 drawings.
I want people to register with a form (username, email) and be able to comment with a text field of 1 to 15 drawings.
So that the different legends are inscribed under each of the drawings with the identifier and the date

What is the best method to achieve this?
Thank you

Guyk

#1559423

Hello,

Q1) I want people to register with a form (username, email)
It is possible with Toolset user form,
https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-registering-users/

Q2) be able to comment with a text field of 1 to 15 drawings.
You can try with WordPress built-in comment feature, for example:
create a custom post type "drawings", and enable option "Comments", more help:
https://wordpress.org/support/article/comments-in-wordpress/
https://toolset.com/documentation/user-guides/custom-content/create-a-custom-post-type/

#1559547
Les assemblages – A & B.png

Hello,
Thank you
to try to be more specific

I put the 15 image in 15 post with a category

and below the form
with two fields,title and description (from another custom post type)
and it works

but I want to display all the results under each of the images without the form in another

#1559667

How do you setup the custom post types and post type relationships?

I assume we are talking about this:
Two custom post types:
- drawings
- my-comments

In a single "drawings" post, you are going to display:
- related "my-comments" posts.
- a post form for creating "my-comments" post

If it is, I suggest you try to setup one-to-many relationship between post types "drawings" and "my-comments", then follow our document to display the related "my-comments" posts in single "drawings" post:
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-many-related-items

And you can setup a post form for creating new child "my-comments" post, and display it in single "drawings" post:
https://toolset.com/documentation/post-relationships/selecting-parent-posts-using-forms-create-child-items/

#1563427

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.