Sidebar Links order (7 posts)

  1. breger
    Posted 10 years ago #

    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?

  2. Mark (podz)
    Support Maven
    Posted 10 years ago #

  3. breger
    Posted 10 years ago #

    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?

  4. breger
    Posted 10 years ago #

    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:

    <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.

  5. JohnP
    Posted 10 years ago #

    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?

  6. breger
    Posted 10 years ago #

    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.

  7. pubwvj
    Posted 10 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.