Forum Replies Created
-
AuthorPosts
-
lrtrlnParticipantHello Steve,
Do you have any idea about the release date of the new version of Piklist compatible with Gutenberg ?
lrtrlnParticipantjust tested on version 0.9.9.17
Attachments:
You must be logged in to view attached files.
lrtrlnParticipantPost type register with register_post_type
$args_CPT = array( 'label' => __('CPT'), 'labels' => $labels_CPT, 'public' => true, 'publicly_queryable' => true, 'can_export' => true, 'show_ui' => true, '_builtin' => false, 'capability_type' => 'CPT', 'map_meta_cap' => true, 'menu_position' => 30, 'menu_icon' => 'dashicons-chart-bar', 'hierarchical' => true, 'rewrite' => array( "slug" => "CPT", 'with_front' => false), 'show_in_rest' => true, 'rest_base' => 'CPT', 'query_var' => true, 'supports' => array('title', 'thumbnail', 'revisions') , 'show_in_nav_menus' => true, 'has_archive' => true, 'exclude_from_search' => false ); register_post_type( 'CPT', $args_CPT );
lrtrlnParticipantFine, all errors are solved.
is this version usable in production?
lrtrlnParticipantproblems are visible on demo : /wp-admin/post-new.php?post_type=piklist_demo
lrtrlnParticipantHello Steve,
sorry but problems are the same on the 0.10-beta.2 version.
Tested on wordpress 4.9.4 / PHP Version 7.2.3-1 / Only piklist & query monitor are enabled.
This mainly concerns this point: https://wiki.php.net/rfc/counting_non_countables
lrtrlnParticipantAny update to fix the problem? Removing submitdiv.php doesn’t resolve this issue. This point is quite critical for all translated versions of WP
lrtrlnParticipantIt 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 ) ...
lrtrlnParticipantHello Steve,
I have checked and nothing better.
Works only with en_US despite having deleted the text domains: http://codepad.org/dUaHKOIn
lrtrlnParticipantIn fact, all the “postbox picklist-meta-box” unit is not working properly when a translation is active.
lrtrlnParticipantHello, another problem: scheduled CPT not working.
This works in English but not in a translated version.
lrtrlnParticipantRemoving all text domains in this file but no change.
By cons, removing all the file piklist/parts/meta-boxes/submitdiv.php works.
lrtrlnParticipantBug 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
lrtrlnParticipantExactly the same with action piklist_post_types or native register_post_type.
lrtrlnParticipant@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. -
AuthorPosts