Skip Navigation

[Resolved] Create template that shows dynamic content without needing a new post for each

This support ticket is created 5 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/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by leeG-5 5 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#1616151

Tell us what you are trying to do?
Is there a way to create a dynamic template that can store the information entered for each user (from a post form or a user form) and then place it into the "template post" when a user clicks on that "post." I know how to make this work by creating a new post for each user, but I'm wondering if I could just use a template as a shell that loads the custom fields when that data set is selected from the views or blocks? I am basically trying to avoid having to create a new post every time a new user is created. No problem if this is not possible. Love the plugin!

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?
Haven't started building the site so nothing to show yet.

#1616921

Hi,

Thank you for contacting us and glad that you're finding Toolset plugins useful.

The role of a content template is to show the stored data, so it can't be used to store individual user's data.

A more natural approach would be to store this user data in user custom fields:
https://toolset.com/documentation/user-guides/user-fields/

Using the front-end Toolset Forms for users, you can collect the required information from the users in these fields:
https://toolset.com/documentation/user-guides/cred-user-forms/

And then using the Types Fields API shortcodes, the data from these fields can be shown on the front-end through content templates:
https://toolset.com/documentation/customizing-sites-using-php/functions/

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#1620367

My issue is resolved now. Thank you!