Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • +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).

    Thread Starter Soron

    (@soron)

    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>";
    }
    
    }
    ?>
    Thread Starter Soron

    (@soron)

    It 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/page

    But then I need a landingpage for each parentpage instead of an archive like the categories.

    Hmm.. will see if this works out.

    Thread Starter Soron

    (@soron)

    Yes, 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
    Thread Starter Soron

    (@soron)

    Got his in my mail:
    “Media X wrote:

    Did you enter anything in the Category base field? Check this

    Check what? ??

Viewing 5 replies - 1 through 5 (of 5 total)