Automatic Posting To WordPress
I’m looking for an expert PHP/Mysql developer who is experienced in WordPress,
more specifically posting remotely to a blog using xml-rpc.
A knowledge of WPManagerDX system is a big plus as well as SEO knowledge.
The project is for one script that will run in a cron so no html output is needed.
You should be familiar with:
– PHP/Mysql. Produce clear, indented, well commented code
– Sending post to remote WP blog including attributes (Author, publish time, categories, tags…)
– Get total number of views for a WP blog
– Good communication, good English
Important: Please send 2-3 PHP scripts that you’ve written as an example for your style.
Here is the main flow. There are some more details for formatting a post like link replacement,
token replacement, keyword highlighting (not revealed here).
Read projects table from WPManager db. Update/Insert to blogs table
For each blog
Get parameters from blogs table
Calculate No of profiles and articles to send Y = X ± rand(X)
Calculate times to send in the next 24 hours (random in daytime hours)
Find Y matching profiles based on location, starting with the oldest
For each profile to send
Prepare html post with the profile (=card) details and image (see below)
Use absolute URLs
Send it with the calculated future publish time. Set the meta tag and
post tags as explained for articles. Set Author=blog name
Insert new action in blog_actions table
For number of articles to send
Get next article from articles directory (first line is the title)
Replace strings (location) and inject links (see below)
Send it with the calculated future publish time
Save it in blog_articles table and delete file
Insert new action in blog_actions table
Get No of views for this blog
Calculates statistics from blog_actions and cards (No of available cards in the location,
No of sent cards and articles)
Get domain expiry date
Update blogs table