Post title and post content fields

Support General Post title and post content fieldsResolved

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #18433
    Ryan LauritsenRyan Lauritsen
    Participant

    I'm trying to do something similar to this:
    https://support.metabox.io/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.

    #18556
    Ryan LauritsenRyan Lauritsen
    Participant

    Anything?

    #18572
    Anh TranAnh 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 LauritsenRyan 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 TranAnh 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 TranAnh 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 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.