WordPress Category by Name

Status: Closed · Asked by DDigital - Steve on · 0 views

Karen Dee — Question ·

I am wanting to trigger a new post to be created in my target WP site.
My source WP site has it's own list of categories. Any way to pass the category name and have it match on name?

Pabblymember11 — Reply ·

Hey @Steve Dee

Could you please briefly elaborate on your use case once with the help of a screenshot or a short video. So that we can look into it and assist you accordingly.

Karen Dee — Reply ·

Ok, I can try to explain it better:
My source WP blog has a category of "Cookies" with an ID of 17
I want to replicate any posts that get published into another WP blog (target) - for any and all categories.
However, my target blog also has a category of "Cookies", but it's ID is 30.

So my question is, how do I automate a Post replication so that the new post on the target blog also receives a category of "Cookies"?

Pabblymember11 — Reply ·

Hey @Steve Dee

We looked into your query and it seems like WordPress is sending the category name along with its id in a different label every time and because of that, the mapped Id of the category did not work because it gets changed every time by WordPress.

So, your use case doesn't seem possible.

Back to all forum threads · Log in to reply