wtd
Forum Replies Created
-
Forum: Plugins
In reply to: [Reduce Bounce Rate] ga4wpjs.js missingLooks good, thanks dude
Forum: Plugins
In reply to: [Reduce Bounce Rate] Reduce Bounce Rate stopped workingLook at the source of this page
https://www.texfly.com/build-a-private-blog-network/
seems the tracking script is on line 48
the reduce bounce rate script comes on line 17…I’ve recently started using wp-rocket as a caching plugin, is that something to do with it?
Forum: Fixing WordPress
In reply to: wp_schedule_event – Creating PHP scriptthanks asido, i had seen that before and checked it when writing my import script.
I was using a standard hook publish_future_post as my callback, so bit bummed that it doesn’t work ?? oh well i’m gonna keep on plugging away at it!
Forum: Fixing WordPress
In reply to: wp_schedule_event – Creating PHP scriptstill no joy :'(
Forum: Fixing WordPress
In reply to: wp_schedule_event – Creating PHP scriptanyone help? still stuck with this one ??
Forum: Fixing WordPress
In reply to: wp_schedule_event – Creating PHP scriptHmm, thanks for the help, but no joy.
I’ve created the script, checked the dates that I’m entering (all OK) and I print out a message before and after the wp_schedule_event call. (all seems OK)
but nothing gets entered into the database. It’s as if the call to wp_schedule_event is being ignored.
Anyway to check by switching on Debug or trace??
Forum: Fixing WordPress
In reply to: wp_schedule_event – Creating PHP scriptCouple of Q’s for you if you have a sec!
I assume that $time_goes_here would work with the response from
strtotime("Tue May 1 02:14:05 2007")
Also the array($your_post_ID_goes_here) can that be literally
array(array(10)) if my ID is 10? What else needs to go in that array??
Cheers
Forum: Fixing WordPress
In reply to: wp_schedule_event – Creating PHP scriptthanks mate, will try that out!
Rgds,
SteveForum: Fixing WordPress
In reply to: wp_schedule_event – Creating PHP scriptbecause just setting them to a future date is not enough to actually register them in the pseudo-cron job.
when you post (via the new post screen) with a future date entered, and the modify timestamp flag ticked, it enters the date in the posts database (with the future date) and also registers an entry in another table to tell wordpress, that on a given date and time, set this posts status from ‘Future’ to ‘Published’
Now I can do the first bit OK but can’t get the second (cron bit) working!
If anyone can take a look at the PHP and see what I am doing wrong it would be appreciated ??
Thanks,
SteveForum: Fixing WordPress
In reply to: wp_schedule_event – Creating PHP scriptyeah thats the whole point!
I have 70-150 articles to post, one a day for the next X days, I can insert them into the database fine, as long as I want them to appear all at once. I can also set them all to a future date, but cannot work out how to schedule the CRON job using wp_schedule_event!
If anyone can help with this, would be much appreciated!
Thanks,
SteveForum: Fixing WordPress
In reply to: wp_schedule_event – Creating PHP scriptHmm interesting, how do you specify posts that start in the future, like the date and time etc?
Forum: Fixing WordPress
In reply to: wp_schedule_event – Creating PHP scriptanyone help? :'(