sushicodeur
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Importer] importer not working on WP5.0It’s maybe not the same problem, but I had to install a 4.9 version of wordpress to import my data, then upgrade to 5.0.
Forum: Plugins
In reply to: [Gravity Forms Personality Quiz Add-On] SetupHello,
I have had the same problem, after deactivating/reactiviating the plugin I finally got it in the settings.
I’ve create 2 select fields with values such as value_1{1}
When I submit the form, {personality_quiz_result}, {personality_quiz_result_percent}, {personality_quiz_result_average} shows 0 and I’ve got a Division by zero warning on lines 329 and 336 of class-gravity-forms-personality-quiz-addon.php
The checkboxes “Use for personality quiz score” are not present.
GravityForms 2.1.1
Gravity Forms Personality Quiz Add-On 1.1.0
WordPress 4.7Forum: Plugins
In reply to: [ACF: Google Font Selector] SSLRead() return error -9806Well it looks like a config error on my machine :
https://stackoverflow.com/questions/26461966/osx-10-10-curl-post-to-https-url-gives-sslread-errorForum: Plugins
In reply to: [Page Links To] display the plugin in selected posttypesThere is a filter for this purpose : page-links-to-post-types
In your functions.php, you can add this code :
add_filter('page-links-to-post-types', array('remove_plt_whatever'), 10, 1); function remove_plt_whatever($post_types) { $unwanted_type_name = 'whatever'; $key = array_search($unwanted_type_name, $post_types); if($key) { unset($post_types[$key]); } return $post_types; }
Well it looks like there was some funky problem with the category, deleted it and recreated another one solved the problem.
Forum: Plugins
In reply to: [Gallery with No Image Links] 3.5.1 CompatibilityI tried the plugin as well, and it has no effect at all, here is how I rewrite it :
add_action('after_setup_theme', 'sushi_after_setup_theme'); function sushi_after_setup_theme() { remove_shortcode('gallery'); add_shortcode('gallery', 'sushi_link_none_gallery_shortcode', 10, 1); } function sushi_link_none_gallery_shortcode($attr) { $output = gallery_shortcode($attr); if($attr['link'] == "none") { $output = preg_replace(array('/<a[^>]*>/', '/<\/a>/'), '', $output); } return $output; }
The important part in this code is to place your code in an after_setup_theme handler.
Forum: Fixing WordPress
In reply to: wp_nav_menu: List only 2nd level (separate submenu)?oops, you’re true, change the condition with :
if (strpos($class_names, 'current-menu-item') || strpos($class_names, 'current-menu-parent') || strpos($class_names, 'current-menu-ancestor') || (is_array($found_parents) && in_array( $item->menu_item_parent, $found_parents )) ) {
Then, in end_el function, change the condition with :
if ( is_array($found_parents) && in_array( $item->ID, $found_parents ) ) {
Should be fine then…
Forum: Fixing WordPress
In reply to: wp_nav_menu: List only 2nd level (separate submenu)?I’ve been a bit to quick, end_el and end_lvl should be overidden as well in Custom_Walker_Nav_Sub_Menu :
[Code moderated as per the Forum Rules. Please use the pastebin]
Forum: Fixing WordPress
In reply to: wp_nav_menu: List only 2nd level (separate submenu)?I think I got it. I created a custom walker for this, that displays only the menu items that have the classes “current-menu-item”, “current-menu-parent”, “current-menu-ancestor”, and all their descendants. It works fine for me, but isn’t fully tested yet.
[Code moderated as per the Forum Rules. Please use the pastebin]
Forum: Fixing WordPress
In reply to: wp_nav_menu: List only 2nd level (separate submenu)?I’m facing exactly the same problem, and didn’t find any satisfactory solution. Played with the Walker_Nav_Menu and the filter wp_nav_menu_items with no luck.
All I found at the moment is a hack using css, but I’m still looking for a nicer solution.
ul.sister-pages li { display:none; } ul.sister-pages li.current-menu-ancestor, ul.sister-pages li.current-menu-ancestor li { display:block; }
Forum: Plugins
In reply to: [Plugin : Media Tags] 2.2.8 under 3.0 RC1 fail to activateThe 2.2.9 just works perfectly fine. Thank you so much for this fix and the plugin itself !
Forum: Plugins
In reply to: [Plugin : Media Tags] 2.2.8 under 3.0 RC1 fail to activatethis error occurs when “smart permalinks” are activated, when using the default permalink scheme it activates fine. Hope this can help.