artyfarty
Forum Replies Created
-
Forum: Plugins
In reply to: [Image and video gallery from Google Drive] Script localisation issue(This problem was mentioned in https://ww.wp.xz.cn/support/topic/images-not-showing-272/)
I solved it for now by working the other way around, so loading the actual post and combining it with the template-post in the single-posttype.php file. But I’m still curious whether there is an answer to the above question.
(I know I can use separate filters for the title, the url, etc., but it seems more practical to get Yoast to load another context instead of hooking into many different filters.)
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] Crash After upgrate to V. 2.5.40Same here. The problem seems to be that /lib/iCal/ contains an older version of iCalcreator (iCalcreator-2.24.2)
Forum: Plugins
In reply to: [WooCommerce] Custom Product Type won’t save in Woocommerce 3I ran into the same problem. Changing the classname did not help me, but I believe this new method is required:
/** * Get internal type. * @return string */ public function get_type() { return '[typename]'; }(See https://github.com/woocommerce/woocommerce/blob/master/includes/class-wc-product-external.php)
Small addendum:
if (!is_admin() || defined(‘DOING_AJAX’)) {
if (pmpro_hasMembershipLevel(SOMETHING)) {
add_filter(“woocommerce_variation_prices_price”, “pmprowoo_get_membership_price”, 10, 2);
}
}is better, because the filter will be added to the hash used to generate the transient. This way there will be 2 separate entries in the price transient: a set for logged in members, and a set for guests.
Forum: Plugins
In reply to: [Mollie Payments for WooCommerce] “Kies Bank” first option textThanx @mvaneijgen, that’s exactly what I meant… 😉
Could be something like
$html .= apply_filters(‘firstoptionfilter’,'<option value=””></option>’);
or
$html .= ‘<option value=””>’. apply_filters(‘firstoptionfilter’,”) . ‘</option>’;
or maybe even pass some arguments.
Thanx guys! En de groeten 😉
Forum: Plugins
In reply to: [Slides JS Plus] 2 slides in on postI believe there is a problem because all the sliders have the same id (“#slides”), given in line 94 of class Slides_JS.
$slider_id = ($slide_type == 'gallery') ? 'products' : 'slides';Just adding some unique string, like the slider-id ($id)
$slider_id = ($slide_type == 'gallery') ? 'products'.$id : 'slides'.$id;
solves this issue.Of course this breaks the css, so adding a class “slides” on line 96
$html = '<div id="'.$slider_id.'" class="slides">';
and adding a lot of declarations in the css will be necessary.