Forum Replies Created
-
AuthorPosts
-
bhushanjawleParticipantAgree @Jason, completely with you on this.
That is why I added link here 🙂
Will update further on github. Wanted to update users on this thread who may not have gone to Github on what worked for me as a workaround.
Thanks !
bhushanjawleParticipant@hozefasmile @Steve, I found a way around it, not sure if this the right way to do it though.
I am able to save the above address field by adding'scope'=>'user_meta'in above field.@Steve, can you please confirm if this is the right way of using it ?
bhushanjawleParticipantIssue created on github
bhushanjawleParticipantHi @Steve, I tried same code as @hozefasmile as my actual code didn’t work.
No user meta was saved in database.
Is there any information missing in header comment I need to add ?
ThanksMay 10, 2017 at 2:17 am in reply to: Remove Dashboard Widgets Showing Roles Instead Of Widgets #8216
bhushanjawleParticipantCould attach only 4 in one go. Here are the rest.
ThanksAttachments:
You must be logged in to view attached files.May 10, 2017 at 2:17 am in reply to: Remove Dashboard Widgets Showing Roles Instead Of Widgets #8211
bhushanjawleParticipantThe ones I sent earlier were the ones I set.
Here are complete screenshots (default settings).
ThanksAttachments:
You must be logged in to view attached files.May 8, 2017 at 12:57 am in reply to: Remove Dashboard Widgets Showing Roles Instead Of Widgets #8200
bhushanjawleParticipantHi @Steve, Attaching screenshot of two settings enabled in WP Helper.
Attachments:
You must be logged in to view attached files.
bhushanjawleParticipantNew issue created on Github
bhushanjawleParticipant
bhushanjawleParticipantHi @Jason, I recently started using Piklist.
My first question, I posted on WordPress.org and piklist.com as was not sure which is the right one to get quicker turnaround.
Installed 0.9.9.13 yesterday as I am unable to make advanced post relationship work and posted issue here
Now that code is hosted on Github, just wanted to confirm if- Github will be the place to post future issues OR
- Should we post only new version issues there OR
- There will be an initial phase when issues need to be posted at both places i.e new ones on Github and continue with old ones here till everything is migrated to github
As per the initiative to involve community, I assume #3 might be the case but just wanted to confirm so as to not duplicate the issue mentioned above on Github.
Thanks
bhushanjawleParticipantFor testing I have used title and content, I have also tried with custom fields for that post type. I am sure the content will not be saved as I have not added it in supports.
To summarize:
1. Is the post_type being passed correctly ?
2. Can we populate other fields registered as custom metabox for related CPT data entry via relations.Thanks
bhushanjawleParticipant@Steve yes, it is registered and I can see it in WordPress Menu.
To make it more concrete, sharing CPT registration with screenshot (attached)// Setup Payment Plan $post_types['payment-plan'] = array( 'labels' => piklist('post_type_labels', 'Payment Plan') ,'title' => __('Enter a new Payment Plan Name') ,'public' => true ,'rewrite' => array('slug' => 'payment-plan') ,'show_in_rest' => true ,'supports' => array( 'title' ,'revisions' ) ,'hide_meta_box' => array( 'revisions' ,'comments' ,'commentstatus' ) ,'menu_icon' => 'dashicons-dashboard' ,'menu_position' => 10 ,'capability_type' => array('payment-plan', 'payment-plans') ,'map_meta_cap' => true ); return $post_types;This is code to add related post meta box
piklist('field', array( 'type' => 'group' ,'scope' => 'post' ,'label' => 'Related Posts' ,'relate' => array( 'scope' => 'post' ) ,'add_more'=> true ,'fields' => array( array( 'type' => 'text' ,'field' => 'post_title' ,'label' => 'Amount Due' ,'columns' => 12 ) ,array( 'type' => 'text' ,'field' => 'post_content' ,'label' => 'Post Content' ,'columns' => 12 ,'attributes' => array( 'rows' => 5 ) ) ,array( 'type' => 'hidden', 'field' => 'post_type', 'value' => 'payment-plan', // 'scope' => 'post' ) ,array( 'type' => 'hidden' ,'field' => 'post_status' ,'value' => 'publish' ) ) ));Thanks.
Attachments:
You must be logged in to view attached files.
bhushanjawleParticipantHi @Steve. I tried the latest RC however the new post created is stored as post_type = ‘revision’ instead of custom post type.
Just posted an update here and found this to be more recent discussion hence adding here.
Can you please confirm if I am passing the parameters the right way ?
Thanks
bhushanjawleParticipantHi @stephen @steve, Just tried release candidate. It does create a new post however post type is set to revision instead of the post_type passed like so
,array( 'type' => 'hidden', 'field' => 'post_type', 'value' => 'my-custom-type', ) ,array( 'type' => 'hidden' ,'field' => 'post_status' ,'value' => 'publish' )Am I passing the parameter as expected or am I missing something ?
Thanks
bhushanjawleParticipant@arranfraser @workvista as this discussion is slightly old was wondering if you found out a way to do this ?
Thanks -
AuthorPosts