0
votes
1answer
127 views

set post to draft after set period based on post_modified date

I have a custom post type for a users profile page. My client wants all users to update their profile at least once a month. So we want their profile (custom post) to be automatically set to draft ...
0
votes
0answers
35 views

Reading csv from specific directory and insert it to custom post type (cron job)

Need a comprehensive cron job script to read .csv data uploaded regularly to specific folder. Will insert data to custom post type only if csv exist base on cron job current date. Any suggestion of ...
0
votes
1answer
170 views

How do you make a custom post type items automatically delete items 3 months after publication?

I'd like somer code that I can place in my functions.php file that will only modify the specified custom post type. I have already tried several plugins, but all of them have more features than I ...
0
votes
1answer
53 views

Running a function on post content and CPT meta

As per this thread I'm scheduling a wp_cron every hour which runs a function. The function I'm running is reasonably lengthy and I didn't want authors to have to deal with the waiting times. My ...
0
votes
1answer
126 views

What is the most efficient way to execute recursive complex queries?

There's a "Jobs" section on my website (custom post type), with various associated taxonomies (language spoken, type of contract, location, etc.) The website also has a very big user base (about 10 ...