coolair
V2EX  ›  WordPress

Wordpress 的 wp_insert_post 函数可以写成脚本写入 crontab 定时执行么?

  •  
  •   coolair · May 14, 2016 · 2411 views
    This topic created in 3720 days ago, the information mentioned may be changed or developed.
    想从一个库里面抽取内容生成文章定时插入到 Wordpress 库里面。
    4 replies    2016-05-14 13:33:20 +08:00
    gotounix
        1
    gotounix  
       May 14, 2016
    可以用 xmlrpc 来插入文章,以下是 Python 实现:
    http://jansipke.nl/using-python-to-add-new-posts-in-wordpress/
    broker
        3
    broker  
       May 14, 2016
    把 wp-load require 进来就可以直接用了吧
    kn007
        4
    kn007  
       May 14, 2016
    用 wp 的内置 Scheduler ,可以 auto post
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5640 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 62ms · UTC 01:39 · PVG 09:39 · LAX 18:39 · JFK 21:39
    ♥ Do have faith in what you're doing.