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
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.
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
Hi Luo,
1) Great! Just wanted to make sure that custom post types with many fields (perhaps 100) is not an issue.
2) Thanks!
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/
Thank you, I have made some changes based on that document.