Support

Account

Home Forums General Issues Append a Custom Field to the_post

Solved

Append a Custom Field to the_post

  • I’m building a method for content admins to add columns of content to posts and/or pages. For a variety of reasons we’re not using shortcodes for this or other layout plugins like Visual Composer. Enter ACF. I want to do this for up to five columns, using a number of wysiwyg editors based on how many columns are chosen. I’ve got that part figured out. For

    However, this is for an existing site with tons of content already. For the sake of future proofing and compatibility I don’t want to replace the content stored in ‘post_content’ table with what’s stored in these fields. So I’m looking for guidance here.

    Is there a way to have the wysiwyg fields to display content from ‘post_content’ table and be able to write to it as well?

  • Hi @digisavvy

    By default, no. That said, you can always customize with code.

    Take a look at the ‘acf/update_value’ filter. You should be able to hook in and then update the post’s content value!

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Append a Custom Field to the_post’ is closed to new replies.