Skip Navigation

[Resolved] Use custom fields for all post body content too?

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

Problem:

How to customize single posts of custom post type?

Solution:

You can follow our document to design/format the single post of custom post types with Toolset Content Template:

Relevant Documentation:

https://toolset.com/course-lesson/creating-templates-to-display-custom-posts/

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

Last updated by Arno 2 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#2330233

Hi,

This is a design/performance question. I am designing a website with several custom post types. I have identified the obvious custom fields for these post types: meta data like numbers, checkboxes, etc. I would use these fields to allow sorting and display some key post information in the top of the post.

However, post authors would have no guidance as to how to create the post body. The post body wouldn't be pre-defined/templated if I only have these meta data custom fields. So there's the risk that post layouts will be different for each post, authors using different image blocks, making their own choices, etc. I am considering to use custom fields for the actual post content too. E.g. single line, multiple line, wysiwyg and media fields.

So, a single line field could be used in the post template as a h2 header, a multiple line field as a paragraph, a media field for an image below that paragraph. Etc. I would be able to control exactly where goes what. It will be long posts though, so this will require A LOT of fields.

Is it common to use custom fields for this? Is there a disadvantage to this approach? Performance wise for example?

I am open to alternative approaches.

Thanks,
Arno

#2330237

Something else: can you please re-open the thread "How to show lines and shapes on maps?" so I can post an update? I have the option to enter a message but when posting it, it fails because the thread is closed.

#2330625

Hello,

Q1) You can follow our document to design/format the single post of custom post types with Toolset Content Template:
https://toolset.com/course-lesson/creating-templates-to-display-custom-posts/

It is a common feature of Toolset plugins, there should not be performance issue.

Q2) I assume we are talking about below thread:
https://toolset.com/forums/topic/how-to-show-lines-and-shapes-on-maps/
Re-opened

#2330651

Hi Luo,

1) Great! Just wanted to make sure that custom post types with many fields (perhaps 100) is not an issue.

2) Thanks!

#2330655

There isn't any limitation in Toolset side, but in your case, you need to increase your webserver limitation, see our document:
https://toolset.com/faq/making-sure-your-site-meets-the-requirements/

#2331689

Thank you, I have made some changes based on that document.