• I have recently set up a business directory area within my site on http://www.airdrie.net/weblog2/business-directory/ and thought I had set up the link order on the sidebar correctly but as you can see, “Supermarkets” appears at the very bottom of the Business Listings instead of alphabetically with the rest of the links. I have tried changing the “sort by” area within the Links menu in admin to “name” and “descending” but it seems to have no efect. Any ideas?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter breger

    (@breger)

    Thanks Podz for spotting that mistake. Unfortunately it does not resolve the problem in that the entry is still pushed to the bottom of the list. Any other ideas?

    Thread Starter breger

    (@breger)

    Success! I ended up replacing the “get-links-by-name” code for the links sections and replaced with “get-links” code. This was set out as below:

    <ul>
    <li><h2>Business Links</h2></li>
    <?php get_links('8', '

    <li>', '</li>
    ', '<br />', FALSE, 'rating', FALSE,<br />
    TRUE, 1, TRUE); ?></ul>
    <ul><?php get_links('8', '

    <li>', '</li>
    ', '<br />', FALSE, 'name', FALSE,<br />
    TRUE, -1, TRUE); ?></ul>

    This gave me a heading (Listings Index) and then the Directory Listing and seemed to kick the entries into alphabetical order.

    I’m impressed with what you’ve done Breger.

    However I’m curious why you decided to use the “links” list to organise your directory, and not “pages”.

    Also, there seems to be a problem with the search function – no matter which of your business types I search on I end up at the “Oops! Are you lost?” page.

    A Google site search would probably work instead, but I can’t understand why WP isn’t indexing these words – does it only see posts?

    Thread Starter breger

    (@breger)

    Sorry for the delay in answering the last comment (I thought this thread was finished).
    Re the choice of “links” v “pages” – no great reason except that was the first thing that worked for me. The Search function problem concerns me more. I have no idea why this should be happening. Have you? The Google idea sounds good though.

    I am having problems with WPsearch not finding things. I tend to use Google on my own site for my own purposes but I wish WP’s search worked for readers. This is in WP2.0.2

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Sidebar Links order’ is closed to new replies.