Djules
Forum Replies Created
-
Forum: Plugins
In reply to: [Safe SVG] 1.9.9 doesn’t return correct width and heightBetter and simpler workaround is to replace
$attributes = $svg->attributes();
with
$attributes = (object) current( $svg->attributes() );
in order to get a flatten object of attributes.For those asking, it’s line 428 in
safe-svg.php
fileForum: Plugins
In reply to: [Variation Swatches for WooCommerce] Image Gallery not changingI’m sorry, it was related to my cache plugin WP Rocket and the lazyload feature (changing src attribute of thumbnails). So it works for me!
Forum: Plugins
In reply to: [Variation Swatches for WooCommerce] Image Gallery not changingSame problem here, but I found out it works if I’m logged with my administrator account, if it helps.
Forum: Plugins
In reply to: [Polylang] wrong frontpage langauge dispalyedI find out I have issue with cached version of pages, using WP Rocket plugin.
I deleted all files by FTP and problem is solved for me.Forum: Plugins
In reply to: [Polylang] wrong frontpage langauge dispalyedI have the same issue since last update 2.2.4.
For now, I fixed this using menu_id as parameter for `TimberMenu instance, instead of slug.
With slug, TimberMenu tries to retrieve the menu_id using
wpml_object_id_filter($slug, 'nav_menu')
, hopefully it gives some help to the plugin author.I’ve got the same issue since the last update 2.2.4, using Timber as well but not sure if it’s related.
I’m going to check that and will tell you what I find if author doesn’t reply before.
Forum: Plugins
In reply to: [Contact Form 7] After the 4.8 Update : No send message and Jquery ErrorGot the same problem here, WP 4.8
Forum: Plugins
In reply to: [Accordion Shortcodes] JS error with jQuery 3.1.1Why using the load event insteaf of the domready one?
Forum: Plugins
In reply to: [Contact Form 7] Radio should return string value, not arrayBump!
Forum: Plugins
In reply to: [Contact Form 7 Multi-Step Forms] wpcf7_add_shortcode deprecated noticeWPCF7_Shortcode has become deprecated since CF7 4.6
Ok thanks, was looking in the main plugin and not in the addon, it makes sense.
I’m sorry but line 144 of what file ?
I found these 3 lines of code line 553 in
ajax-load-more.php
, in the functionalm_query_posts
, but this function is only used when doing AJAX query, when you want to display preloaded posts, the function is called line 284, in the functionalm_shortcode
.Let me know if I’m wrong.
Hi,
I’m talking about the ‘month‘ key in the array of arguments to preload posts.
Line 264 in
ajax-load-more.php
, the key you used for month is ‘month’, but it should be ‘monthnum’ as used in the WP_Query object.The arguments are filtered (line 282) just before being used for the query. This is where I transform month to monthnum until it’s fixed.
When you say month is converted to monthnum, where is that ?
Thanks.
Forum: Plugins
In reply to: [Listo] posible to have custom dataHere is how I added my own list (in my case it was a list of languages).
Either in file
functions.php
of your theme, or in another PHP file you’ll include infunctions.php
, add your own PHP class which implements Listo :class Listo_Languages implements Listo { private static $items = array( 'af' => "Afrikaans", 'ar' => "Arabic", 'bg' => "Bulgarian", ); private static $groups = array(); private function __construct() {} public static function items() { return self::$items; } public static function groups() { return self::$groups; } }
List your items in
$items
variable like I did (I deliberately shortened the list for the example), using patternkey => value
.Then hook your new list to available lists in Listo.
function add_my_own_listo_list( $list_types ) { $list_types['languages'] = 'Listo_Languages'; return $list_types; } add_filter( 'listo_list_types', 'add_my_own_listo_list' );
And you’re done ! Hopefully it helps.