Import JSON feed into WordPress -

Completado Publicado hace 5 años Pagado a la entrega
Completado Pagado a la entrega

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

Nº del proyecto: #19330261

Sobre el proyecto

7 propuestas Proyecto remoto Activo hace 5 años

Adjudicado a:

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 Más

$130 USD en 2 días
(28 comentarios)
5.2

7 freelancers están ofertando un promedio de $73 por este trabajo

dynamitewebsol

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

$150 USD en 2 días
(210 comentarios)
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 Más

$30 USD en 1 día
(21 comentarios)
6.0