plugins - add tags to wordpress post using REST API

I'm new to WordPress programming and I'm trying to connect to WordPress REST API and send a new post with cont

I'm new to WordPress programming and I'm trying to connect to WordPress REST API and send a new post with content and many tags.

I can connect to API and send a new post but I can't add tags to those posts. I want to add tags using tag names and not IDs and it seems it is not possible. I searched over the internet and I think I should use wp_set_post_tags function but I don't know how to use this function because there is no manual for that.

My PHP web app makes some new content and tags and subject and I want to post these content to WordPress automatically using API. Can someone help me how should I send a new post to WordPress and add tags to those posts using tag names and not IDs because I generate those tags using my app and some of them might be existing in WordPress database?

So I want to add tags just like WordPress editor, separate those tags with a comma and add them to new posts.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744846614a4596876.html

相关推荐

  • plugins - add tags to wordpress post using REST API

    I'm new to WordPress programming and I'm trying to connect to WordPress REST API and send a new post with cont

    2天前
    50

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信