最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

wp insert post - How to Create Content Remotely

programmeradmin4浏览0评论

I'm trying to help populate a newly setup wordpress website and am trying to write scripts to do automated posting of a pre-processed archive of e-mails as a series of posts and comments. I'm completely new to wordpress development and would like to be able to use the wp_insert_post and wp_insert_comment from my remote machine to achieve this. Is it possible?

I'm trying to help populate a newly setup wordpress website and am trying to write scripts to do automated posting of a pre-processed archive of e-mails as a series of posts and comments. I'm completely new to wordpress development and would like to be able to use the wp_insert_post and wp_insert_comment from my remote machine to achieve this. Is it possible?

Share Improve this question asked Dec 1, 2016 at 3:40 RyanRyan 1
Add a comment  | 

1 Answer 1

Reset to default 0

You can try WP-CLI, WordPress Command Line Interface. If your pre-processed archive is a set of files, you'll be able to create future posts to be published on specified dates utilizing these files in batch.

All you need to use WP-CLI remotely is SSH terminal and, maybe, some scripting skills.

See also Smashing Magazine review.

发布评论

评论列表(0)

  1. 暂无评论