maxoud
Forum Replies Created
-
Forum: Plugins
In reply to: [Knews Multilingual Newsletters] No Ajax when jQuery loads in footer@creverter: Thanks a lot!
@nicooprat: It looks like you’ve hardcoded
knews_subscribe.js
somewhere, which is a bad practice. There is no such file in the new version (1.7.4).Forum: Plugins
In reply to: [Cookie Notice & Compliance for GDPR / CCPA] Move script to footerAny news?
It moves unregistered jQuery to the header too.
It’s a tiny fix for it — just two array values, is it?
Forum: Plugins
In reply to: [Polylang] You can test the beta version of Polylang 1.7@timodoma
Your widget is hidden under<header>
. For this reason it’s inaccessible.Forum: Plugins
In reply to: [Polylang] Is there a function to get translations by id or slugThere is no straight way, by you can do following:
//Find the post id by it's slug $id = $wpdb->get_var("SELECT ID FROM $wpdb->post WHERE post_name = 'ny_jobs'"); //Get post translation id $tr_id = pll_get_post($id,'fr') //Get the translation post object $post_object = get_post($tr_id)
Forum: Plugins
In reply to: [Polylang] Conditional language switcher displayOh, sorry, it’s my fault. You need to add
echo
argument:<?php $switcher = pll_the_languages( array( 'show_flags'=>1, 'show_names'=>1, 'force_home'=>0, 'hide_if_no_translation'=>1, 'hide_current'=>1, 'echo' => 0 ) );
Forum: Plugins
In reply to: [Polylang] Conditional language switcher display<?php $switcher = pll_the_languages(array('show_flags'=>1,'show_names'=>1,'force_home'=>0, 'hide_if_no_translation'=>1, 'hide_current'=>1)); if($switcher): ?> <div id="LanguageSwitcher" class="styleLanguageSwitcher" > <ul><?php echo $switcher ?></ul> </div> <?php endif; ?>
Forum: Plugins
In reply to: [Polylang] [Feature request] Language filter for WP_List_TableOops! I never use that toolbar and usually it’s hidden by my custom themes functions. But if it’s already implemented I’ll find a way to extend Polylang class in theme functions.
Forum: Plugins
In reply to: [Category Posts Widget] code improvement suggestionIt’s a bad practice to produce the code generatinge too many Notices as there is a probability to never recognize an important one.
One more point is that this plugin has been written when
WP_DEBUG == false
so it’s impossible to entrust it and for that reason should be avoided.Just kill it!
That’s idea is from late 90s and is stupid for 2010s. I’ve already blocked it in AdBlock Plus.
Oh, I see. Version 1.3 vs. 1.4.
I’m going have to tweak (or fork) the plugin to fit my needs.
Forum: Plugins
In reply to: [YT Tree Menu] [Plugin: YT Tree Menu] Highlight the current page?Current page has yttm_current CSS class. Each current page ancestor has yttm_path class. Just style them accordingly.
Forum: Plugins
In reply to: [Hyper Cache] [Plugin: Hyper Cache] Cache files never createdNick, can you send me zipped theme you use, please. maxyudin[]gmail.com
Forum: Plugins
In reply to: [Hyper Cache] [Plugin: Hyper Cache] Cache files never createdHello, Nick!
Don’t follow my instructions!. I’ve dug deeply into the plugin code and understood I’m wrong. Sorry for that.
See what happens when you logout and clean up cookies set by your WP installation. If nothing new – deactivate all plugins except Hyper Cache and see what happens then. Also you can try to switch to default template.
In my case it was bad buffering stacking (nested
ob_start
) caused by custom theme.Forum: Plugins
In reply to: [Hyper Cache] [Plugin: Hyper Cache] Cache files never createdI’ve faced the same problem today and I’ve got a superficial solution:
- open cache.php inside hyper-cache folder;
- find the line containing
if (!file_exists($hc_file))
; - remove
return;
after that line and before following curly bracket.
Ugly bug…