Wordpress link order in column.

4 replies
I am working on a site for a business partner (another mike) trying to reorder the links in the right column of the theme.

I am working with WP 2.7... it has the feature to set a number for ordering... did that. Works great in the header of the theme, but in the column it does not work. I took a look at the code for the header and I see it using a command to order them, but the column code is a lot more vague and the ordering there must be hidden in the backend.

Site:

Coin Shows Illinois; Gold & Silver Bullion, Collectibles, Antiques Auctions; Flea Markets Ill

Theme:

New Dirt Blog

Theme Download:

New Dirt Designs - Wordpress Themes

I found a plug-in that looks like it might help, but that seems like overkill... for something that should be fairly simple once I know where to look.

Can someone provide me map?

Thanks,
Michael


Sidebar Code:

Code:
<!-- begin l_sidebar -->

<div id="l_sidebar">

	<ul>
	<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>
	
		<li>
		<h2>Categories</h2>
			<ul>
				<?php wp_list_categories('sort_column=name&title_li='); ?>
			</ul>
		</li>
		
		<li>
		<h2>Archives</h2>
			<ul>
				<?php wp_get_archives('type=monthly'); ?>
			</ul>
		</li>

		<li>
		<h2>Links</h2>
			<ul>
				<?php get_links(-1, '<li>', '</li>', ' - '); ?>
			</ul>
		</li>
	
		<li>
		<h2>Meta</h2>
			<ul>
				<?php wp_register(); ?>
				<li><?php wp_loginout(); ?></li>
				<li><a href="http://www.wordpress.org/">WordPress</a></li>
				<?php wp_meta(); ?>
				<li><a href="http://validator.w3.org/check?uri=referer">XHTML</a></li>
			</ul>
		</li>

	<?php endif; ?>
	</ul>
	
</div>

<!-- end l_sidebar -->
#column #link #order #wordpress
  • Profile picture of the author ThomM
    Mike try this plugin WordPress › My Link Order WordPress Plugins
    It will add a widget that works very well.
    There is another one for pages also WordPress › My Page Order WordPress Plugins

    These will only work in the sidebar if you are using widgets.
    Signature

    Life: Nature's way of keeping meat fresh
    Getting old ain't for sissy's
    As you are I was, as I am you will be
    You can't fix stupid, but you can always out smart it.

    {{ DiscussionBoard.errors[556367].message }}
  • Profile picture of the author Niche Kid
    I think that the default sort order is 'Link id'.

    Parameter 6 is used for order:
    Code:
    <?php get_links(category, 'before', 'after',
    'between', show_images, 'order', 
    show_description,show_rating, limit, 
    show_updated, echo); ?>
    Here are some options for order:
    'id'
    'url'
    'name'
    'target'
    'category'
    'description'
    'owner' - User who added link through Links Manager.
    'rating'
    'updated'
    'rel' - Link relationship (XFN).
    'notes'
    'rss'
    'length' - The length of the link name, shortest to longest.
    You may need to delete the links and add them in the order you want them to appear... or use a sidebar plugin
    {{ DiscussionBoard.errors[557693].message }}
    • Profile picture of the author magentawave
      If I understand you correctly, the following plugins might do what you want.

      • I use the Exclude Pages from Navigation plugin so I can choose which links I want in the top nav bar. This plugin puts a "include page in navigation" check box on the edit page for every PAGE (not post).
      • I use the My Page Order plugin. Super easy to use. Just drag the boxes to reorder how you want pages to appear in your top nav bar.
      • Then I use the Simple Sidebar Navigation plugin (has a widget) so I can put all the pages I don't want cluttering my top nav bar in my sidebar. Pages like Sitemap, TOS, Disclaimer, etc., etc. go in my sidebar.

      All three of those are free, very easy to use, and work well with WP 2.7 too.

      Steve
      {{ DiscussionBoard.errors[559234].message }}
  • Profile picture of the author mouseffects
    I messed with all of the widgets to do the job and didn't really like the way any worked so I finally ended up using the text widget and put my own code there. That way I can use text links, buttons, alt, etc. as well. - Much wider choices.
    Signature

    Larry Perry
    innovedia
    www.innovedia.net

    {{ DiscussionBoard.errors[559268].message }}

Trending Topics