php - Extra editor on top of default in Custom Post Type

admin2025-04-19  0

Normally there is one editor by default in any custom post type.

I want one extra + If extra is possible how will we print it in the front end. For a default we do it like this:

the_content();

what I am visualizing is that really possible?

Normally there is one editor by default in any custom post type.

I want one extra + If extra is possible how will we print it in the front end. For a default we do it like this:

the_content();

what I am visualizing is that really possible?

Share Improve this question asked Nov 14, 2019 at 22:21 WordCentWordCent 1,8916 gold badges34 silver badges60 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

There are plugins available, such as Advanced Custom Fields, that allow you to add additional content areas. You set up the fields, and choose what post types they will appear on, and then you'll be able to enter information in a WYSIWYG editor basically like the Classic Editor.

ACF saves the data to postmeta rather than post_content, so you then need to adjust your theme templates to specifically call for that postmeta wherever it is needed.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745002832a279335.html

最新回复(0)