Plugin Fold Page Menus

Αν θέλετε αναδιπλωμένο μενού χρησιμοποιήστε το plugin Fold Page Menus

Θα το βρείτε στη διεύθυνση http://www.mealldubh.org/index.php/software/fold_page_menus/

Installation

To install, simply download fold_page_menus.tgz into your wp-content/plugins directory and unzip it - it?s just a single file fold_page_menus.php. Install it through Site Admin -> Plugins as usual.

You then need to add it into your current theme. Edit the sidebar.php file and add fold_page_menus to the call to wp_list_pages.

For the WordPress default theme, this means changing this line:
<?php wp_list_pages('title_li=<h2>Pages'); ?></h2>
to this:
<?php wp_list_pages(fold_page_menus().'title_li=<h2>Pages'); ?></h2>
and that?s it.

How does it work?

wp_list_pages accepts an exclude parameter with a list of pages which should not be shown in the menu. This plug-in works out which pages to exclude and creates the necessary exclude= list.

Γράψτε το σχόλιό σας

Πρέπει να είστε εγγεγραμένος για να γράψετε ένα σχόλιο.