Gerald
Forum Replies Created
-
Forum: Plugins
In reply to: [Leaflet Map] More than one GeoJSON popup_propertyGreat shot @bozdoz, your proposal works perfect adding the template function and changing line 109 of leaflet-map/shortcodes/class.geojson-shortcode.php to:
text = popup_property && props[ popup_property ] || template(popup_text, feature.properties);
Thanks!
ps: just created a pull request
Forum: Plugins
In reply to: [DK PDF - WordPress PDF Generator] .png images not showing in PDFsI also see a [X] in place of image and tried to debug the error adding $mpdf->showImageErrors = true; to dkpdf-functions.php. Where should I see the output of mpdf image errors, in the PDF or somewhere in the logs?
Thanks Emili, that worked out great!
Still persists in Jetpack 4.4.1, manually defining a custom Publicize message works for the message itself but for sure not for the linked wordpress post.
Forum: Plugins
In reply to: Publicize (JetPack) and qTranslate problemStill persists in Jetpack 4.4.1, seems to be one of this eternal bugs: https://github.com/Automattic/jetpack/issues/2195
Forum: Plugins
In reply to: [Automatic Featured Images from Videos] v 1.0.2 doesn't work for HQ/HD videosThe problem is that it works with v1.0.1 but stopped working with the new version. Still didn’t find out what’s the problem, could you try with the above example if it works for? Maybe it’s again something with server configuration (as the problem I had with allow_url_fopen)
Forum: Plugins
In reply to: [WP Ultimate Post Grid] Suggestion – Limit terms by post countThanks for your reply. To use wpupg_grid_cache_filter plugin hook I would need the number of related posts in $filter, or not? So to make that work I would need this code added to line 239 of helpers/grid-cache.php:
'posts_per_term' => count($posts_per_term[$taxonomy][$slug])
Meanwhile I use a temporary solution with the not recommended method of editing your plugin. I added an IF to line 236 of helpers/grid-cache.php:
// Filter terms if ($taxonomy != "musico" || $taxonomy == "musico" && count($posts_per_term[$taxonomy][$slug]) > 1) { $filter_terms[$slug] = array( 'taxonomy' => $taxonomy, 'name' => $term->name, 'posts_per_term' => count($posts_per_term[$taxonomy][$slug]) ); }
This only shows terms for taxonomy “musico” which have at least two related posts.
Maybe it would be good to give a warning in the case
allow_url_fopen
is disabled? In this caseget_headers()
doesn’t work and there is no way to decide if grabbing hqdefault image.The problem was that
allow_url_fopen
was disabled in PHP. Setting it to “1” made your code work perfectly for the mentioned video thumbnail.Actually you are right about the 404 error it detects so your line of code gives the desired result and I can automatically retrieve the image from
hqdefault.jpg
Thanks for your help!
Forum: Plugins
In reply to: [Radio Buttons for Taxonomies] Change "No term"Thanks, that work perfectly!
Forum: Plugins
In reply to: [Radio Buttons for Taxonomies] Change "No term"Thanks for the fast answer. I tried defining “not_found” as labels option when registering the taxonomy but it doesn’t seem to be used for the 0 “No {$taxonomy}” radio button added by default.
It works fine to disable this radiobutton but I needed to change the text of the default state to “unknown”.
Looking in your code I found that the text comes from line 258 of class.WordPress_Radio_Taxonomy.php file and it can be changed with the language file:
$no_term = sprintf( __( 'No %s', 'radio-buttons-for-taxonomies' ), $this->tax_obj->labels->singular_name );
Forum: Plugins
In reply to: [Video Background] z-index on mobileI’m using Touchfolio Theme: https://dimsemenov.com/themes/touchfolio/
Thanks!
Forum: Plugins
In reply to: [qTranslate X] Keep url hash when switching languagesThanks for the hint, works like a charme. Only had to adapt the jquery selector to:
$('ul.qtranxs_language_chooser li a')
Forum: Plugins
In reply to: [WP Bootstrap Carousel] Carousel doesn′t automatically cycleafter debugging carousel.js I found out that this.options.interval variable is null. after setting
this.options.interval = 5000;
the carousel cycles correctly. seems to be some incompatibility of the plugin with the theme but I could′t find out how to solve it in a more elegant way.
sorry for the spam!
Forum: Plugins
In reply to: [WP Bootstrap Carousel] Carousel doesn′t automatically cycleAfter some more tests it seems to be a incompatiblity with the theme (Vertoh: https://www.showthemes.com/2015-event-wordpress-theme-vertoh), with Twentyfifteen it works!
Do you have any recomendation how to find the conflict with my theme? I just tried with the last version of bootstrap carousel (3.3.5) but without success.