Leaving custom fields empty to fit content in the same template

[ad_1]

Hi community,

I want to build a knowledge base website, where I’ll be adding content as if it was a course. That is why I want to build the content as a Custom Post Type – lectures.

However, the content has a different structure per lecture (e.g. one 1. starts with a graph, then has a chunk of text, below another image and more text. Lecture 2. only has text and no images).

That means, in order to build the content using 1 or 2 templates to visualise it, I need to leave some custom fields empty to maintain the order and the format of the content.

For instance, the lectures would have the following structure of custom fields:

1. Image
2. Text
3. image
4. Text
5. …

In the first lecture I’d fill in all fields, but in the second, the fields 1. and 3. would be left out empty and using conditional logic, they would not be visualised in the template if empty.

**Is it a good practice to leave some custom fields empty? Would there be any other solution using ACF and elementor?**

​

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer