Import JSON feed into WordPress -

Виконано Опубліковано %project.relative_time Оплачується при отриманні
Виконано Оплачується при отриманні

I have the following code attached. The problem is that it will republish all of the posts sometimes, instead of updating them if they already exist and deleting individuals ones that shouldn't be there anymore.

I need it to do the following. When you login into the admin and should run once a day (cron job? WP, CRON is setup on plugin activation. Once set up, it keeps waking up based on configured cycle until remove through plugin deactivation.)

- check third party api url

- if current post are missing from the api, delete them

- if a post is missing from the admin that is in the api, add it

- if a post is currently there, update it

- no longer needs to be done with admin-ajax, this will not be called from js, should all run as is

- do not republish all the posts (this is what my code will currently do after x-amount of time)

- need a way to set a meta value or something that will prevent this from happening

- There is Job ID in API result. It's unique, and should store it when creating new WP post from API result and then next day, use the Job ID to identify which posts to update.

- Should also not use 'file_get_contents' function. Wordpress has a transport transparent Remote API which is specially coded for making remote http calls.

PHP WordPress

ID Проекту: #19330261

Про проект

7 заявок(-ки) Дистанційний проект Остання активність 4 роки(ів) тому

Доручено:

waltermonica

Hello, I can make the script to update/create or delete the posts on your wordpress site from the JSON feed, I've already done similar task. I follow all the WordPress standards, I'll do all the modifications in chi Більше

$130 USD за 2 дні(-в)
(28 відгуків(-и))
5.2

7 фрілансерів(-и) готові виконати цю роботу у середньому за $73

dynamitewebsol

Hello, I read your requirements and understand very-well and ready to start work from now. Thank you

$150 USD за 2 дні(-в)
(210 відгуків(и))
7.4
Kawsarahmed1996

I'm a professional front-end, backend, and WordPress, Shopify developer with 6 years of experience in creating a modern and responsive website. I have advanced knowledge of HTML & CSS (with valid and semantic markup an Більше

$30 USD за 1 день
(21 відгуків(и))
6.0