• Hi
    I’d like to write a script which do:
    1) Auto grab post data from one of my different source
    2) Auto grab link and upload it to file server
    3) Collect and join datas into one post with title, download link and featured image to my wordpress blog.
    4) Repeat that process for every other source titles 5 times in a day.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Joey

    (@leglesslizard)

    Hi,

    What is your other source? If it’s WordPress, check out the REST API. I believe you can do everything you require using the described processes there.

    Thread Starter fixingmywp

    (@fixingmywp)

    Other source is not wordpress.

    Joey

    (@leglesslizard)

    OK so firstly I’d check to make sure there isn’t anything about that provides the basic functionality from what you want (there’s a good chance someone has tried to do what you want and has written a script that you can tweak to suit your exact needs, doesn’t mean it’ll be easy to find!)

    If that’s a no go then you need to look into what kind of API the other source has. You’ll have to get familiar with the documentation and write up some functions to pull the required information from the appropriate posts.

    Depending on where you want this script to run (cron job on the server for example), you’ll need to wrap the functionality in a cron (scheduled task) to run it automatically. When importing the posts you can look at wp_insert_post (if running inside your WordPress install) or the REST API if running elsewhere

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

The topic ‘Auto poster/uploader from another source?’ is closed to new replies.