Viewing 3 reply threads
  • Author
    Posts
    • #3771
      irene
      Member

      Hi,
      I have a metabox with the attribute New: true.
      What I want is to show this on the add-new page and hide it once saved on the edit page.
      The case is that the metabox appears on the edit page and not on the add-new page, even when I set the attribute to false.
      What am I doing wrong?

    • #3785
      Steve
      Keymaster

      @irene– Welcome to the Piklist community!

      When you press “Add New Post”, WordPress sets the Post Status to auto-draft. So just use the status parameter to tell Piklist you only want to show the meta box when the post status is auto-draft.

      Add this to your comment block:

      Status: auto-draft
      

      No need to use the new attribute. new is really used to NOT show a metabox on the new page: New: false.

      Let us know if you need anything else.

    • #3786
      irene
      Member

      Hello Steve!
      Thanks! It works…
      Irene

    • #3787
      Steve
      Keymaster

      Great. Closing ticket

Viewing 3 reply threads
  • The topic ‘New attribute metabox’ is closed to new replies.