Soron
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Please can we have a recaptcha v2 option back?+1 It’s a shame the developer refuses to add V2 back to the plugin. With the current state of CF7 i consider this plugin broken and a potentional security risk (one of my clients got over 1800 spam mail a day after te plugin update).
Forum: Themes and Templates
In reply to: How to add a widget inside a submenu?I did use a Costum Walker Class to extend the output of the submenu’s. This code in my functions.php file puts a list (ul) in a section before the submenu-items. I’m sure there must be a way to call for a sidebar to make the section dynamic instead.
<?php class Walker_Page_Custom extends Walker_Nav_Menu { function start_lvl(&$output) { $output .= "<div> <section> <header> <h1>Meest populair</h1> </header> <ul> <li><a href='/verwarmen-en-koelen/cv-ketels/'>CV Ketels</a></li> <li><a href='/verwarmen-en-koelen/pellet-kachels/'>Pellet-kachels</a></li> <li><a href='/energie-besparen/zonnepanelen-pv/'>Zonnepanelen (PV)</a></li> <li><a href='/domotica-en-beveiliging/domotica/'>Domotica</a></li> </ul> </section> <ul>"; } function end_lvl(&$output) { $output .= "</ul></div>"; } } ?>
Forum: Fixing WordPress
In reply to: How to get category slug in urlIt seems you can make a hierarchy in the page attributes. By selecting a parentpage I can get the url i want.
Thus:
https://www.mydomain.com/parentpage/pageBut then I need a landingpage for each parentpage instead of an archive like the categories.
Hmm.. will see if this works out.
Forum: Fixing WordPress
In reply to: How to get category slug in urlYes, It works for posts, but not for pages, which I added categorys for with this code:
//Pages Tags & Category Meta boxes function add_pages_meta_boxes() { add_meta_box( 'tagsdiv-post_tag', __('Page Tags'), 'post_tags_meta_box', 'page', 'side', 'low'); add_meta_box( 'categorydiv', __('Categories'), 'post_categories_meta_box', 'page', 'normal', 'core'); } add_action('add_meta_boxes', 'add_pages_meta_boxes'); add_action('init','attach_category_to_page'); function attach_category_to_page() { register_taxonomy_for_object_type('category','page'); } //end
Forum: Fixing WordPress
In reply to: How to get category slug in urlGot his in my mail:
“Media X wrote:Did you enter anything in the Category base field? Check this
“Check what? ??