Luís Peralta
Forum Replies Created
-
Hy Sybre.
Did as you told but the issue remains. The auto canonical shown (with language directory) isn’t used. And forcing a custom canonical, doesn’t work either.
The PolyLang plugin is the Pro version, I don’t know if has something to do with it.
Found it! Thank you!
Hello,
I’m having the exact same problem described by @aelias but i can’t find the refered option “Attachment Text Format”.
Was it on a previous version of the plugin? How to disable now the image caption from FB posts?
Forum: Plugins
In reply to: [WP-Polls] Not Posting on Specific Day of the WeekEvery hour, i believe will be fine for the majority of the users. But having an option to make it run every 5min, 30min, 1hour, 12h, 24h etc. would be better.
It could be even better to allow a user to type the seconds interval and have the plugin creating the custom schedule interval to use on the cron set up.
Btw, my code above was wrong. Here’s the corrected one:
functions.php:
add_filter( 'cron_schedules', 'cron_add_2min' ); function cron_add_2min( $schedules ) { // Adds once weekly to the existing schedules. $schedules['2min'] = array( 'interval' => 120, 'display' => __( 'Every two minutes' ) ); return $schedules; }
wp-polls.php:
function cron_polls_place() { wp_clear_scheduled_hook('polls_cron'); if (!wp_next_scheduled('polls_cron')) { wp_schedule_event(time(), '2min', 'polls_cron'); } }
Forum: Plugins
In reply to: [WP-Polls] Not Posting on Specific Day of the Weeki saw some other users refering to the fact of polls not being activated when they should, nor being closed at a given time.
yesterday, while configuring the plugin on my site, i did aswell faced this issue while testing this functionality.
the issue is in fact on the cron settings setup on the plugin at function cron_polls_place in wp-polls.php.
It is scheduled to run the plugin stuff two times per day, as Lester Chan just said. This means, that a poll scheduled to a given time will only get activated when the cron runs after that time. might take 1 minute. might take half a day.
Since wordpress only comes with the options hourly, twicedaily or daily, to use in the wp_schedule_event function, and since i need the plugin to run when i want, i solved my issue editing functions.php, and added the following:
add_filter( 'cron_schedules', 'cron_add_2min' ); function cron_add_2min( $schedules ) { // Adds once weekly to the existing schedules. $schedules['weekly'] = array( 'interval' => 120, 'display' => __( 'two_mins' ) ); return $schedules; }
This code gives me the ability to, on wp-polls.php, change the function cron_polls_place() to start using the arg ‘two_mins’ instead of the default ‘twicedaily’:
function cron_polls_place() { wp_clear_scheduled_hook('polls_cron'); if (!wp_next_scheduled('polls_cron')) { wp_schedule_event(time(), 'two_mins', 'polls_cron'); } }
Now i got the plugin getting updated once every 2 minutes.
Of course, for some the option hourly would do just fine, while others can grab my code and edit it to run on a different interval, like ‘interval’ => 300 for an update every 5 minutes.
@lester Chan: It would be nice to have this cron option available on the plugin admin page. At least with the default wordpress intervals.
Forum: Plugins
In reply to: [WP Modal Login] W3 Total Cache IssueI had the same issue. Solved it modifying the WPML script wp-modal-login.js
replaced:
window.location.href = wpml_script.redirecturl;
with:
location.reload(true);
Note: I’m running on nginx with W3TC sugested install
The edit-profile page, when the user isn’t logged (which will show the message for him to login) stills fires this JS error.