wouterdoorn
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Newsletter Plugin - Noptin] Custom DigestExactly what I was looking for! Thank you so much.
Forum: Plugins
In reply to: [Simple Newsletter Plugin - Noptin] Custom DigestThanks for the quick reply and link, that does help a lot. I got a long way in styling the list according to my wishes, but I can’t get the right author name and link to work. For reference, I use the premium version of the Guest Author Plugin, here is the dev info https://www.plugins.shooflysolutions.com/guest-author-name/knowledge-base/developer-support.
I normally display the guest-author name with a shortcode:
<?php echo do_shortcode(‘[display_post_author_name]’) ?>
and the link by using a function that uses the post ID:
<?php echo get_author_posts_url( get_the_author_meta(‘ID’) ); ?>
Both keeps displaying the samee author (me as I superadmin) when I preview the campaign, instead of the guest authors. Any ideas?
Forum: Plugins
In reply to: [Read Meter - Reading Time & Progress Bar] Reading Time in Loop on Front Pagesolved it by adding:
.bsf-rt-display-label:after { content: attr(prefix) !important; } .bsf-rt-display-time:after { content: attr(reading_time) !important; } .bsf-rt-display-postfix:after { content: attr(postfix) !important; }to my stylesheet. If you have a more elegant solution please let me know.
Exact same issue here. We run a multiste setup with subfolder for translation. The plugin works fine in the admin area of our English site but the exact same error as above occurs when trying to access the plugin on our Dutch site…
Resolved with the help of the author.
For future reference here the code I ended up using in single-guest-author.php to get all posts from a guest author ordered by title:<?php
$query = get_queried_object();
$id = $query->ID;
global $is_guest_author_query;
global $wp_query;
$args = array(
‘orderby’ => ‘title’,
‘order’ => ‘ASC’
);
$is_guest_author_query = true;
$wp_query = gap_guest_author_archive_query($id, $args);
?><?php
if ( $wp_query->have_posts() ) {
while ( $wp_query->have_posts() ) {
$wp_query->the_post();
wp_reset_query();
?>`Forum: Plugins
In reply to: [Multisite Language Switcher] archive slug incorrectI got it to work! Apart from the right code for the query itself (which I got with the help of the Guest Author plugin author) al that was needed was a wp_reset_query() at the end of the query after which adding the permalink hook in functions.php to change de slug translation finally worked.
Thanks for the quick response. I am actually using the premium plugin. Querying by author doesn’t work. I can get the correct display_name and description using the_author_meta, but nothing else. The ID is always the original user ID (1). Using the_author doesn’t work, i guess because of the same reason. I am just getting all the posts every time (or no posts at all).
Forum: Plugins
In reply to: [PDF.js Viewer] 403 Forbidden HELP!!!Any updates on the solution? I’m getting the same error.
Forum: Plugins
In reply to: [HTML Forms - Simple WordPress Forms Plugin] Google Analytics trackingHmm… I got the error to disapper with:
document.addEventListener('DOMContentLoaded', function () { html_forms.on('success', function(formElement) { ga( 'send', 'event', 'Contact Form', 'submit' ); }) }, false)and then only loading that script on the pages where the form is present via functions.php
But now, submitting acontact form stopped working, I just get the following error:
Uncaught ReferenceError: ga is not defined at 40961.js?de585:1 at d770d.js?07e2c:1 at Array.forEach (<anonymous>) at Object.trigger (d770d.js?07e2c:1) at s (d770d.js?07e2c:1) at XMLHttpRequest.r.onreadystatechange (d770d.js?07e2c:1)I am not that code savy. I thought the ga() code would work but clearly it doesn’t. Any ideas?
Hi Mike,
thanks for your notice. The new features look great! I actually want back to the standard mollie form (by wobbie) because the option for the form only was missing. Very happy to go back to your plugin now as it looks far better.
Best,
Wouter
Thanks for your support!
Hi Mike,
thanks for the swift and extensive reply. I do appreciate al the work that you have put in which must have taken a lot of time, and really appreciate you offering it for free. So I hope my inquiry wasn’t to blunt. I’m only a hobbyist that made a website for a nonprofit foundation and I tend to get carried away with trying to optimize everything…
In order to only load the css and js when necessary I tried using the following in functions.php in order to load the css and js in posts only, but it didn’t work, any suggestions?
function kudos_deregister_javascript_css() {
if ( !is_single() ) {
wp_deregister_script( ‘kudos-public’ );
wp_deregister_style( ‘kudos-public’ );
}
}
add_action( ‘wp_enqueue_scripts’, ‘kudos_deregister_javascript_css’, 100 );And since your plugin is the only one on my website that is loading the wp-polyfill.min.js I could look into disabling it. As far as I can tell it is only need for IE support, and not needed for modern browsers. Is that true or am I missing something?
Best,
Wouter
- This reply was modified 5 years, 1 month ago by wouterdoorn.
thanks for the quick solution, very much appreciated. I must admit that your orange color has grown on me, it does actually fit my color scheme. And using the button instead of a form does look clean!
Forum: Plugins
In reply to: [Replyable - Subscribe to Comments and Reply by Email] 2.2.8 crashing siteI am still unable to update to version 2.2.8. I run 2.2.7 and am not getting any notifications in my dashboard for an update or hotfix. As soon as I activate the plugin with version 2.2.8 (downloaded through the advanced tab here or through your website) my site crashes or shows an error, it is then not possible to get into my dashboard. I re-installed version 2.2.7 and everything works again. Is there a working version of the update available for download?
Forum: Plugins
In reply to: [Meow Gallery] js and css load on every pageI guess I found the answer, in functions.php I added:
/**
* Load Meow gallery on specific pages only
*/
function meow_deregister_javascript_css() {
if ( !has_post_format(‘gallery’) ) {
wp_deregister_script( ‘mgl-js’ );
wp_deregister_style( ‘mgl-css’ );
}
}
add_action( ‘wp_enqueue_scripts’, ‘meow_deregister_javascript_css’, 100 );