• Resolved parmindersingh07

    (@parmindersingh07)


    I have created Child theme of bootstrap-ultimate theme,in which i created custom post type. Now i want to display Post Custom Options in custom post editor,for this i have to override bootstrap-ultimate/inc/eo/admin-custom-fields.php,how can i achieve this

Viewing 1 replies (of 1 total)
  • Theme Author eminozlem

    (@eminozlem)

    Hi, yes you have to change two lines in bootstrap-ultimate/inc/eo/admin-custom-fields.php to add your custom post type, lets say ‘book’ type:
    Near line 78:

    function eo_add_custom_box() {
        $screens = array( 'post','page','book' );

    Near line 107:

    if ( ( get_post_type() == 'post' || get_post_type() == 'page' ) || ( !get_post_type() || get_post_type() == 'book'  ) ) {

    Try to make use of child themes (https://codex.www.ads-software.com/Child_Themes) in order not to lose your file edits with updates.

    Thank you for using the theme, feel free to rate & review if you like the theme. Marking as resolved, let me know if you’ve further questions.

Viewing 1 replies (of 1 total)
  • The topic ‘Add Post Custom Options to Custom Post Type’ is closed to new replies.