Forum Replies Created

Viewing 15 posts - 31 through 45 (of 52 total)
  • Author
    Posts
  • in reply to: Register Taxonomy for a user and a post type? #5510

    Damn. Dreams crushed!

    Looking forward to your workaround.

    in reply to: can't access file id uploaded via piklist #5496

    Update: I took out the key “cover_image” and noticed there’s a item called “my_image”. Turns out it is the same as what I added.

    How do I change the key for it? I’d rather it be semantic and thought using the field key in piklist would do just that.

    in reply to: Post Relationship and the wp rest api #5416

    Last question while I’ve got you – since you seem to be the expert on relating:

    Will there ever be reciprocal connections? I can link a post to another – which is great. What about the option of two-way relating without having to do it manually via the other post.

    in reply to: Register Taxonomy for a user via piklist #5415

    Got it working. I had to tamper with the settings a bit. I had some things missnamed.

    Thanks!

    in reply to: Register Taxonomy for a user via piklist #5413

    Yes, the taxonomy does show in the users menu list.

    I am registering the taxonomy in a standalone piklist plugin and putting the user metabox stuff in my theme. Does that matter?

    in reply to: Register Taxonomy for a user via piklist #5411

    Thanks, Steve.

    I’m now following this:https://piklist.com/user-guide/tutorials/display-taxonomies-as-a-dropdown-or-radio-buttons/

    but i’m placing the below in the /users folder and an referencing the test_tax (from the example in my first post) via get_terms. I see the meta-box and field but am not seeing the terms come back on the user’s profile (even though they do exist).

    
    <?php
    /*
    Title: My User Metabox
    Description: My cool new metabox
    Taxonomy: testtax
    Capability: manage_options
    
    */
    piklist('field', array(
      'type' => 'select'
      ,'scope' => 'taxonomy'
      ,'field' => 'testtax'
      ,'label' => 'Test Tax'
      ,'description' => 'Terms will appear when they are added to this taxonomy.'
      ,'choices' => array(
          '' => 'Choose Term'
        )
        + piklist(get_terms('test_tax', array(
          'hide_empty' => false
        ))
        ,array(
          'term_id'
          ,'name'
        )
      )
    ));

    Any suggestions?

    in reply to: Post Relationship and the wp rest api #5408

    Thanks for this. I’ll give it a go and link to the github page for you or others to refer to.

    Thanks for sticking this out with me, Jason. I know it’s an edge case.

    in reply to: Post Relationship and the wp rest api #5404

    yes, exactly what I want to do.

    I have a post that i’m editing. I’ll expose the relationship to other posts (via piklist) and then I want to select those and submit as a POST request. Then I’ll use the filter you showed me to show what’s already connected when viewing the post.

    in reply to: Post Relationship and the wp rest api #5402

    One more question: What if I wanted to POST to this?

    I want to be able to select the posts from the angular app to relate to a post so I’d obv need to send a post request.

    Do I need to send something special to the regular posts endpoint? I assume I can’t just post to the filter.

    in reply to: Post Relationship and the wp rest api #5400

    Perfect! had to drop the php function in the plugin and now everything’s working perfectly!

    Awesome work. Can’t wait to play around.

    Thanks a mill, Jason.

    in reply to: Post Relationship and the wp rest api #5398

    Yes, when I use http://site.dev/wp-json/wp/v2/posts?filter[category_name]=testcat

    I get only the posts back that have the ‘testcat’ assigned to it.

    When I try http://site.dev/wp-json/wp/v2/posts?filter[post_has]=1 (I tried your way of [post_has=1] and notta)

    I get back the 10 latest posts from the site (none of which are related to post 1)

    I’m authenticated on all requests.

    Is this an api issue you think?

    in reply to: a Note of Love #5393

    Already have!

    in reply to: Post Relationship and the wp rest api #5391

    Np on the timeline. I know how these things go.

    Are you sure about the url? I just tried it and it returns all posts from the site.

    in reply to: Post Relationship and the wp rest api #5389

    omg. Mind blown. I cannot wait to see your work on the relationship query. Any ideas of release timeline? Q1, Q2?

    Yes, I’m using the V2 api plugin (beta9) and I’m using piklist 0.9.4.29.

    Also, just to clarify the filter: If I wanted to get the posts related to post with an id of 1, would this work? site.dev/wp-json/wp/v2/posts/1?filter[post_has]

    I just tried that on my dev site and I’m not seeing them in the response even though I double checked that post 1 has other posts selected.

    What am I missing?

    in reply to: Post Relationship and the wp rest api #5384

    Also, I heard that the post-to-post relationships was going to be overhauled. Is that done or still in the works?

Viewing 15 posts - 31 through 45 (of 52 total)