• Resolved mjacobsen4DFM

    (@mjacobsen4dfm)


    Using WP-API Version 2.0-beta9 and Co_Authors Plus Version 3.1.2 on WP 4.5-alpha-36288

    In short, I need to Get the co-author term_id and Post it to the wp_term_relationships table via the API.

    Essentially, I am trying to copy the posts from one WP instance to another. (both sites have matching co-authors).

    Is there an endpoint, or any API oriented method, to get to the wp_term_relationships data? I don’t know of any API for Co-Author’s Plus, so WP-API is the most likely entry point, from my perspective. However, it is just an example; tags and categories create the relationship too. But, they do it when the object is tied to the Post.

    Any help is appreciated. Thank you.

    https://wordpress.org/plugins/rest-api/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Is there an endpoint, or any API oriented method, to get to the wp_term_relationships data?

    There isn’t, no. I’m aware of at least a couple people requesting REST API endpoints for Co-Authors Plus, so I’m sure if you wrote one for your own needs and open sourced it, many people would appreciate it.

    Thread Starter mjacobsen4DFM

    (@mjacobsen4dfm)

    Thank you. Saves me struggling and hunting.
    I’ll have to try creating that endpoint.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Get/Post wp_term_relationships (co-authors plus)’ is closed to new replies.