Viewing 6 reply threads
  • Author
    Posts
    • #2468
      vagelis
      Member

      Hi. I want to create a custom metabox for the Posts. It works fine for my custom post type but not for the default WP posts.

      <?php

      /*
      Title: My Demo Related Metabox
      Post Type: demo
      Locked: false
      Context: side
      */

      piklist(‘field’, array(
      ‘type’ => ‘post-relate’
      ,’scope’ => ‘post’
      ,’template’ => ‘field’
      ));

      piklist(‘field’, array(
      ‘type’ => ‘post-relate’
      ,’scope’ => ‘page’
      ,’template’ => ‘field’
      ));

      ?>

      I’ve tried to add post to the Post Type area along with demo but nothing changed.

    • #2469
      Steve
      Keymaster

      @vagelis– Did you include it with a comma?

      Post Type: demo,post
      

      Or just

      Post Type: post
      
    • #2470
      vagelis
      Member

      Both ways. None of them worked

    • #2471
      vagelis
      Member

      I’ve made a plugin that creates workflows and so I have two tabs on the Edit Post page(Basic and SEO). Just mentioning this in case it matters.

    • #2472
      Steve
      Keymaster

      You need to assign meta boxes to Workflow tabs using the include_meta_boxes function.

    • #2473
      vagelis
      Member

      Is there a way to do that without messing with the plugin?

    • #2474
      Steve
      Keymaster

      That function needs to go in the file generating the tab

Viewing 6 reply threads
  • You must be logged in to reply to this topic.