Forum Replies Created

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • in reply to: Custom Fields in User Profile #8227
    bhushanjawle
    Participant

    Agree @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 !

    in reply to: Custom Fields in User Profile #8224
    bhushanjawle
    Participant

    @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 ?

    in reply to: Custom Fields in User Profile #8223
    bhushanjawle
    Participant

    Issue created on github

    in reply to: Custom Fields in User Profile #8222
    bhushanjawle
    Participant

    Hi @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 ?
    Thanks

    bhushanjawle
    Participant

    Could attach only 4 in one go. Here are the rest.
    Thanks

    Attachments:
    You must be logged in to view attached files.
    bhushanjawle
    Participant

    The ones I sent earlier were the ones I set.

    Here are complete screenshots (default settings).
    Thanks

    Attachments:
    You must be logged in to view attached files.
    bhushanjawle
    Participant

    Hi @Steve, Attaching screenshot of two settings enabled in WP Helper.

    Attachments:
    You must be logged in to view attached files.
    in reply to: For those using 0.9.9.13 #8027
    bhushanjawle
    Participant

    New issue created on Github

    in reply to: For those using 0.9.9.13 #8026
    bhushanjawle
    Participant

    Thank you @Jason. Will create this as new issue on Github. What I am doing is this, trying to create a related custom post type from another (with add-more).
    There must be something I am missing with syntax. If you get a chance, please have a look here . I have posted code and screenshot.

    in reply to: For those using 0.9.9.13 #8021
    bhushanjawle
    Participant

    Hi @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

    1. Github will be the place to post future issues OR
    2. Should we post only new version issues there OR
    3. 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

    in reply to: Related posts vs postmeta? #8020
    bhushanjawle
    Participant

    For 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

    in reply to: Related posts vs postmeta? #8018
    bhushanjawle
    Participant

    @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.
    in reply to: Add custom user profile fields to New User creation #8007
    bhushanjawle
    Participant

    Hi @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

    in reply to: Related posts vs postmeta? #8006
    bhushanjawle
    Participant

    Hi @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

    in reply to: add_more with relate to custom post type #8004
    bhushanjawle
    Participant

    @arranfraser @workvista as this discussion is slightly old was wondering if you found out a way to do this ?
    Thanks

Viewing 15 posts - 1 through 15 (of 18 total)