WordPress.org

Ready to get started?Download WordPress

Forums

My Link Order
No effect in WP 3.0.4 (5 posts)

  1. IndigoJo
    Member
    Posted 3 years ago #

    I have WordPress 3.0.4 and installed this plugin. It's not made anything go wrong, it just has no effect on my link category order whatsoever. They are still in alphabetical order.

  2. froman118
    Member
    Plugin Author

    Posted 3 years ago #

    IndigoJo,

    You do have to take the final step of modifying your theme or widgets. It won't automatically take effect.

    Andrew

  3. ItsDan
    Member
    Posted 3 years ago #

    I find it odd that you have to use a custom widget. Why not utilize the links widget's arguement filter as such:

    add_filter('widget_links_args', 'enable_link_ordering');
    function enable_link_ordering($args)
    {
    $args['orderby'] = 'order';
    $args['category_orderby'] = 'order';

    return $args;
    }

  4. froman118
    Member
    Plugin Author

    Posted 3 years ago #

    ItsDan,

    That's certainly possible, but it overrides all widgets someone might be using. It might be rare that someone will want to display links in different ways on their site, but I have to err towards flexibility or else the plugin becomes useless for some. Maybe someone wants their links to be in a random order, but they want Link Categories in a specific order.

    I hope the need to use a separate widget is offset by the fact that the My Link Order widget exposes all of the parameters unavailable on the built in Links widget. If someone needed to access those parameters they would have to muck around in their theme and figure out how to replicate their sidebar without widgets. A few years ago widgets weren't nearly as ubiquitous as they are now, but it should be expected that a user can do everything with widgets that they can do with code in a template.

  5. ItsDan
    Member
    Posted 3 years ago #

    Fair enough. It may be worth adding that to the notes as a possible way to 'enable' My Link Order for widgets. In my case I had the widgets in place when the site owner told me they wanted to order the blogroll, so in my specific case it's much easier to filter the arguments.

    It could also be a plugin setting, left off by default for legacy purposes.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic