Tagged: New attribut
- This topic has 5 replies, 2 voices, and was last updated 7 years, 3 months ago by
Steve.
-
AuthorPosts
-
-
November 8, 2014 at 4:50 am #2673
kattagamiMemberHello,
There is maybe a bug with the “New” attribut when you create a metabox.
For instance, when I use this code to add a metabox + text field in my Custom Post “cadeau” :<?php /* Title: Prix Description: Prix du cadeau en euros Post Type: cadeau Capability: administrator Context: normal Priority: high Order: 1 Locked: true Collapse: false New: true */ piklist( 'field', array( 'type' => 'text', 'scope' => 'post_meta', 'field' => 'wptech_cadeau_prix', 'label' => __( 'Prix' , 'texdomain' ), 'description' => __( 'Maximum 150 €' , 'texdomain' ), 'help' => __( 'Prix du cadeau en euros. Indiquer uniquement un chiffre.' , 'texdomain' ), 'attributes' => array( 'class' => 'wpatech-cadeau-prix' ), 'position' => 'wrap' ) );The metabox doesn’t display in my CPT “cadeau” (whatever the value is true or false). If I remove the “New” attribut from the comment, my metabox appears.
-
November 10, 2014 at 11:22 am #2725
SteveKeymaster@kattagami– It looks like there’s a bug using NEW and WorkFlow tabs, but I just tested without the Workflow and it worked fine. Are you using WorkFlow tabs?
-
November 10, 2014 at 5:51 pm #2742
kattagamiMemberIn my case, this bug appends with and without workflow.
For instance, if you test the demo plugin available in this thread:
https://piklist.com/support/topic/bugs-with-validation/… where there is no Workflow, and add the “New: true” attribut in the top comments, the metabox disappears.
-
November 10, 2014 at 5:57 pm #2743
SteveKeymaster@kattagami– Do you want the metabox to be available when the post is new?
-
November 10, 2014 at 6:08 pm #2744
kattagamiMemberYes…
But in fact I don’t really need this features at the moment. I just notice the bug so I wrote this message to let you know and to check if it’s a reproducible bug. -
November 11, 2014 at 10:23 am #2750
SteveKeymaster@kattagami– Thanks! Will fix.
-
-
AuthorPosts
- The topic ‘Bug with the "New" attribut when creating a metabox in a CPT’ is closed to new replies.