Tagged: ,

Viewing 28 reply threads
  • Author
    Posts
    • #7246
      lrtrln
      Participant

      Piklist 0.9.9.9 / WP 4.6 installed. When I write a post in a custom post type, post status remains “draft” and not “published” in drop down even if I changed it and clicked the OK button. I tested already with all other plugins deactivated. Can you please advise. Thanks

    • #7250
      Steve
      Keymaster

      @lrtrln– Welcome to the Piklist Community!

      Is this working in Piklist Demos?

    • #7254
      lrtrln
      Participant

      @steve thx 🙂

      Demo offers redefined status fields (demo, pending, …). The problem affects only native WP fields (draf, publish, pending).
      Bug steps :
      1 publish CPT post with native status
      2 change status to draft
      3 publish
      4 change status to publish
      5 post remains in draft

      ->(attached GIF)

      Attachments:
      You must be logged in to view attached files.
    • #7256
      lrtrln
      Participant

      Exactly the same with action piklist_post_types or native register_post_type.

    • #7257
      Steve
      Keymaster

      Do you have any custom Piklist fields for this CPT? Try removing them and see if the bug goes away.

    • #7258
      lrtrln
      Participant

      Bug comes from the translated version (tested with fr_FR version)
      With wpcli
      wp core language activate fr_FR ==> bug
      wp core language activate en_EN ==> no bug

    • #7276
      Steve
      Keymaster

      Try this:
      -open this file:piklist/parts/meta-boxes/submitdiv.php
      -Remove “piklist” from all the text domains.
      — So THIS: _e('Status:', 'piklist'), SHOULD BE THIS _e('Status:')

      Let us know if that fixes the problem.

    • #7279
      lrtrln
      Participant

      Removing all text domains in this file but no change.
      By cons, removing all the file piklist/parts/meta-boxes/submitdiv.php works.

    • #7309
      lrtrln
      Participant

      Hello, another problem: scheduled CPT not working.
      This works in English but not in a translated version.

    • #7310
      lrtrln
      Participant

      In fact, all the “postbox picklist-meta-box” unit is not working properly when a translation is active.

    • #7317
      Steve
      Keymaster

      Please double-check that you removed all text domains from piklist/parts/meta-boxes/submitdiv.php.

      I was able to reproduce your error, and also fix it by removing text domains.

    • #7318
      lrtrln
      Participant

      Hello Steve,
      I have checked and nothing better.
      Works only with en_US despite having deleted the text domains: http://codepad.org/dUaHKOIn

    • #7480
      bicho44
      Member

      Any idea, if this is solved?

      I have the same problem

      • #7481
        lrtrln
        Participant

        It works by rewriting CPT statuses : https://piklist.com/learn/doc/creating-custom-post-statuses/
        Just add statuses array in piklist_post_types

        'status' => array(
          'draft' => array(
            'label' => __('draft', LANG),
            'public' => false
           ),
           'pending' => array(
             'label' => __('pending', LANG),
             'public' => false
           ),
           'publish' => array(
             'label' => __('publish', LANG),
             'public' => true
           )
          ...
    • #7482
      bicho44
      Member

      OK, im gonna give it a try.

      Thanks

    • #7483
      bicho44
      Member

      Still no working 🙁

      If I update a post, the status, keep as draft.

      When I create a post, the status are always draft

      If I use quick edit, i can publish the post.

      Anyone can help?

    • #7490
      amristar
      Member

      I have the same problem in russian version of WP.

    • #7493
      Steve
      Keymaster

      If you remove all the text domains from this file does it work?
      piklist/parts/meta-boxes/submitdiv.php

    • #7527
      amristar
      Member

      Hi!

      I found a way to publish the CPT posts. First I move into status for review, and then only published. The way it works.
      Can I set from draft status to publication? As in the usual case it works for pages.

    • #7617
      xtian
      Participant

      Dear Steve, I have the same problem, fr_FR locale.

      I removed all the text domains from submitdiv.php, no change.

      If it’s any help, I can change the status with Quick Edit on the main Page list.

      Best regards
      Christian

      • #7618
        xtian
        Participant

        I forgot: the problem exists for Posts and Pages, I don’t use a CPT.

    • #7619
      amristar
      Member

      As a temporary solution I deleted the file submitdiv.php and problem gone.

    • #7621
      xtian
      Participant

      Thanks amristar, it does work!

    • #7625
      Tonny Keuken
      Member
      This reply has been marked as private.
    • #7744
      lrtrln
      Participant

      Any update to fix the problem? Removing submitdiv.php doesn’t resolve this issue. This point is quite critical for all translated versions of WP

      • #7745
        bicho44
        Member

        No news for me either

    • #7896
      bicho44
      Member

      Any idea about this bug? Is more anoying than anything

    • #7942
      Steve
      Keymaster

      Hi All– Please test this release. We rewrote this to work better:
      https://github.com/piklist/piklist/releases/tag/0.9.9.13

    • #7950
      amristar
      Member

      For me it’s work nicely!
      Submitdiv metabox now in correct translation.

    • #7953
      Steve
      Keymaster

      @amristar– Great!

    • #7957
      bicho44
      Member

      Yeah! Victory! Thanks

    • #7970
      Steve
      Keymaster

      Awesome! Closing ticket.

Viewing 28 reply threads
  • The topic ‘Post status remains “draft” in submitbox’ is closed to new replies.