Custom Fields
Re-Envisioned
Support General Post title and post content fields

  • Creator
    Topic
  • #18433
    Resolved Ryan Lauritsen
    Participant

    I’m trying to do something similar to this:
    https://metabox.io/support/topic/post-author-field-supported/
    but with a post_title field instead of post_author.

    When I set the field ID to post_title the field does not show up in WP admin.

    The same thing happens with a WYSIWYG field with ID set to post_content.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #18556
    Ryan Lauritsen
    Participant

    Anything?

    #18572
    Anh Tran
    Keymaster

    Hi Ryan,

    Are you using the Frontend Submission extension? In that extension, we hide all default post fields in the admin area, to make them not duplicated with the default WP UI.

    #18590
    Ryan Lauritsen
    Participant

    Yes, we are using the Frontend Submission extension. I’d like the fields to show up both on the frontend and in admin (replacing the default WP UI fields). The reason is that we are trying to customize how data is input in the admin with metabox fields instead of default WP fields.

    #18603
    Anh Tran
    Keymaster

    Hy Ryan, thanks for your feedback. Let me see if we can remove that part from the plugin. For now, it’s best to use default WP fields.

    #19304
    Anh Tran
    Keymaster

    I’ve just updated the plugin to show the fields in the admin if the post type doesn’t have support for them. If you want to show them, make sure you remove post type support for the post type, like this:

    add_action( 'init', function() {
        // Remove post type supports and show Meta Box fields for them.
        remove_post_type_support( 'post', 'title' );
        remove_post_type_support( 'post', 'thumbnail' );
    } );
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.