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.
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 Daha Fazla
Bu iş için 8 freelancer ortalamada $70 teklif veriyor
I have more than 4+years marvellous experienced in Web Technologies. I am fully dedicated and enthusiastic and i will serve you best as Technology-Partner. Successfully bought to Life- [login to view URL] Daha Fazla
Hi there, I have gone through your project description. I have more than 10 years experience as a Full Stack Developer. I available to start immediately. ================= I am an expert in ================= Daha Fazla
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 Daha Fazla
**WordPress Website Development expert** Website is a key pillar of your company’s identity, and the process through which it is created and refined is important to your long-term success. Wordpress is one of the li Daha Fazla