stanibdevcom
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: global_nav vs. wp_list_pagesDigging a little deeper, how does the sandbox_globalnav function produce a horizontal menu? It is a list and a list is vertical. I would like to produce a menu that is horizontal for my parent pages and vertical for my child pages. I don’t understand how to modify this function to achieve this effect. Any idea how to modify this function to do that? Thanks.
Forum: Fixing WordPress
In reply to: Sandbox menu: How to exclude pages from wp_list_pages?Also see Template Tags/wp list pages from the Codex.
Forum: Fixing WordPress
In reply to: Sandbox menu: How to exclude pages from wp_list_pages?What has worked for me is to use an “exclude” condition in the parameter list for the call to wp_list_pages for any pages you don’t want listed as follows:
function sandbox_globalnav() { if ( $menu = str_replace( array( "\r", "\n", "\t" ), '', wp_list_pages('exclude=76&title_li=&sort_column=menu_order&echo=0') ) ) $menu = '<ul>' . $menu . '</ul>'; $menu = '<div id="menu">' . $menu . "</div>\n"; echo apply_filters( 'globalnav_menu', $menu ); // Filter to override default globalnav: globalnav_menu }
Hope this helps.
Forum: Plugins
In reply to: [Plugin: Simple Tags] WP 2.8.4 post tags work – page tags DO NOTWhen I add the same tags to both the post and page, the tags are displayed in the tag cloud and link to both the post and page. When I remove these tags from the posts (leaving the page tags in place), the tags are NOT displayed in the tag cloud. Seems like the page tags work only if there is a corresponding post with identical tags.
Forum: Fixing WordPress
In reply to: NextGen Gallery Flash upload problem…You may need to get the latest version . I was having the same problem and upgrading to version 1.0.1 allowed me to upload multiple images.
Forum: Plugins
In reply to: Restricting access to a page / post based on roles