Plugin Fold Page Menus

Καταχωρήθηκε στις 22 Φεβρουαρίου 2008 @ 11:20 από admin - Κατηγορία: Πρόσθετα (Plugins) - Κανένα σχόλιο

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

Θα το βρείτε στη διεύθυνση [1]


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.


URLs in this post:

Copyright © 2010 SchoolPress. All rights reserved.