WordPress.org

Ready to get started?Download WordPress

Forums

Suffusion
widget "child pages" order_by broken (19 posts)

  1. pmsadmin
    Member
    Posted 1 year ago #

    Hi there,

    excellent theme, very useful, really.
    One litte thing: "order by" of widget "child pages" can't work.
    Because "order_by" is no valid parameter for get_pages().
    Changing suffusion-child-pages.php #45 did it:
    // 'order_by' => $order_by,
    'sort_column' => $order_by,

    Regards,
    Martin

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    You may want to also post this on Suffusion's dedicated site:

    http://aquoid.com/news/themes/suffusion/

  3. pmsadmin
    Member
    Posted 1 year ago #

    If that makes you happy - okay, did it. :-)

  4. Guust
    Member
    Posted 1 year ago #

    I never ever had a problem with Child Pages widget of suffusion.
    Works perfect for me on more than one site.

  5. pmsadmin
    Member
    Posted 1 year ago #

    Shure, why should you have problems?
    It's only related to sort subpages, e.g. by "menu order".
    Does that work for you?

  6. Guust
    Member
    Posted 1 year ago #

    Yes see this page on the right hand side.
    The "Supplier information" are the child pages ordered by menu order.
    So I don't quite understand "One litte thing: "order by" of widget "child pages" can't work."

  7. pmsadmin
    Member
    Posted 1 year ago #

    Strange, I just switched back to the original code - and I loose the menu order.

    But look to the code of suffusion-child-pages.php,
    There's a branch by using the list style and something other.
    And with the list style you get the default "menu_order".
    Just try to change that...

    The parameter has to be sort_column and not order_by:

    $page_args = array(
    // changed by me from order_by to sort_column
    // 'order_by' => $order_by,
    'sort_column' => $order_by,
    [...]
    );
    [...]
    if ($post_style == 'list') {
    $pages = wp_list_pages($page_args);
    if (!$show_if_empty && trim($pages) == '') {
    return;
    }
    }
    else {
    $page_list = get_pages($page_args);
    if (!$show_if_empty && count($page_list) == 0) {
    return;
    }
    }

    And codex says:

    <?php wp_list_pages( $args ); ?>
    Default Usage
    <?php $args = array(
    [...]
    'sort_column' => 'menu_order, post_title',
    [...]
    ); ?>

    <?php get_pages( $args ); ?>
    Default Usage
    <?php $args = array(
    [...]
    'sort_column' => 'post_title',
    [...]
    );

  8. Guust
    Member
    Posted 1 year ago #

    I tried to re-order different ways: ascending vs descending, and a few other options. And the order did NOT change, so it seems you're right.
    Can't help you with PHP I am afraid, I'll take your word for it.

  9. bfitzgerald
    Member
    Posted 1 year ago #

    I love this template. One thing I cannot figure out, though, is how to change the heading "Pages" to something like "Info Pages" or "Blog Info". Most of my readers do not seem to realize what "Pages" means so I want to clarify it.
    If this change can be made, please let me know how.
    Thanks!

  10. Guust
    Member
    Posted 1 year ago #

    If you mean that the title of the list of child pages says Pages, then the solution is simple.
    Edit the title of the widget, ie change it from [suffusion-the-post display='title'] to Blog info.

  11. bfitzgerald
    Member
    Posted 1 year ago #

    Dear John,
    I appreciate your help and that simple tip but as far as I can tell I am not using the Pages widget. When I looked in my "Widgets" area no Pages widget is active even though I have 7 "Pages" featured on the blog right now. I do have 2 "inactive" Pages widgets and one "Pages" widget in the "Available" box but nothing active in the far right column.
    I can't figure this out. Also there is a blank widget appearing above my top Google Ad that I cannot eradicate.
    The site is here:
    http://fitzvideo.com/sky_surfing/
    If you have a moment to look at it I would appreciate your analysis.
    BTW, I am using the Suffusion Template.
    Thanks.

  12. Guust
    Member
    Posted 1 year ago #

    Go to
    /wp-admin/nav-menus.php
    You should have a menu there (menu above header) You can edit any of the links etc.
    If that is not how you built your menu, then go to
    /wp-admin/themes.php?page=suffusion-options-manager&tab=theme-options-visual-effects.php
    and find "Pages" tab title
    You should be able to choose it there (you might have to get your head around some of the other settings on that page)

  13. Guust
    Member
    Posted 1 year ago #

    Regarding the blank widget, I haver no idea really.
    It looks like you should be able to delete the first widget in your sidebar from the widgets page?

    Or maybe something here:
    wp-admin/themes.php?page=suffusion-options-manager&tab=theme-options-sidebars-and-widgets.php

  14. bfitzgerald
    Member
    Posted 1 year ago #

    Thanks, John. That did the trick. It is now "Blog Info".
    Did you happen to have any idea what that "faux widget" is at the top of my right column?
    I can't find where it came from.

    fitzvideo.com/sky_surfing/

  15. bfitzgerald
    Member
    Posted 1 year ago #

    Forget that last input. I just saw your email response.

  16. bfitzgerald
    Member
    Posted 1 year ago #

    In answer to your response...
    That's the weird thing. In the widgets panel under "Appearance", the very first widget is the one called "Display Add in Sidebar" (the GoogleAd widget - should be "Ad").
    Above that there is nothing.
    Maybe the misspelling of "Ad" is a clue and these guys have a bug in their widget...

  17. Guust
    Member
    Posted 1 year ago #

    Try deleting the Google Ad widget and see whether that deletes the faux widget as well. Then you have your answer.
    If that is the problem, then just replace the Google Ad widget with a plain Text widget and add your code to that.

  18. bfitzgerald
    Member
    Posted 1 year ago #

    Dear John,
    Thanks. That's a great idea. I will not be able to try it until tomorrow but I will give it a shot.

  19. Guust
    Member
    Posted 1 year ago #

    And if all else fails add this to your CSS:

    .tab-box-right {display: none;}

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic