straighte180
Forum Replies Created
-
Forum: Plugins
In reply to: [My Page Order] [Plugin: My Page Order] not changing the order on the siteYes, I see that now. Thanks esmi
For the Zen theme here is the solution: for subpages you need to define the menu order in the get_pages() function before it gets to the wp_list_pages() function
I hope that helps someone!
if (is_page()) { $this_page = $post->ID; if ($post->post_parent) $this_page= $post->post_parent; $children = get_page_children($this_page, get_pages('sort_column=menu_order')); if($children) { $tabs .= "<li>\n".'<ul class="subpages">'; foreach($children as $child) { $tabs .= wp_list_pages('title_li=&include='.$child->ID.'&echo=0'); } $tabs .= '</ul></li>'; } }
Forum: Plugins
In reply to: [My Page Order] [Plugin: My Page Order] not changing the order on the siteI looked in my Zen theme’s functions.php. It may have something to do with this?
// Register sidebar widgets if (function_exists('register_sidebar')) { register_sidebar(array( 'name'=> 'Top Tabs', 'id' => 'top_tabs', 'before_widget' => '<li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>', )); register_sidebar(array( 'name'=> 'Right Sidebar', 'id' => 'right_sidebar', 'before_widget' => '<li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<h3>', 'after_title' => '</h3>' )); } ?>
Thanks again!!
Forum: Plugins
In reply to: [My Page Order] [Plugin: My Page Order] not changing the order on the siteOK my turn to ask froman something! I need my subpages to order correctly (as they do in admin)
I have put in ‘sort_column=menu_order’ into…
foreach($children as $child) {
$tabs .= wp_list_pages(‘title_li=&include=’.$child->ID.’&echo=0&sort_column=menu_order’);
}… to no avail.
here is the full code for my sidebar.php
[Code moderated as per the Forum Rules. Please use the pastebin]
Thankyou!!
Forum: Fixing WordPress
In reply to: Comments in expanded formHere is something that might help
Forum: Fixing WordPress
In reply to: Comments in expanded formHe means that currently, for example, “3 comments” are linked to those 3 expanded comments.
He wants to have those comments already expanded below the blog post (by default).