Support » Themes and Templates » Categories Won’t Display in Correct Order

  • I installed the Category Order plugin and am trying to re-organize the order of my main navigation, in my template but the categories won’t switch to the correct spots. Everything looks fine on the back-end, but when I save the changes it won’t show on the site. Any ideas? Here is the link to my site.

    new.central-church.org

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Mark Ratledge

    (@songdogtech)

    Forum Moderator

    That plugin, according to the author’s page, has only been tested to 2.5.

    Can’t tell what version of WP you’re using because it looks like you removed the <?php wp_head(); ?> from header.php, which might be the problem, as that provides hooks for plugins and the plugins can’t work without hooking into the loop.

    You have no metadata, either, which can be a result of deleting the wp_head hook. If you manually add links to CSS and Javascripts and don’t want <?php wp_head(); ?> to do it, you also have to manually add your metadata, etc.

    I just upgraded to 2.8 this morning. I created the layout for the site and outsourced the coding, do you think they removed the hook? If so is there an easy way to add that back in or do I need to contact the people who created the template? Thanks for your help.

    Moderator Mark Ratledge

    (@songdogtech)

    Forum Moderator

    It’s a mess. I see the wordpress generator metadata now, so maybe wp_head is included, but check and add if necessary <?php wp_head(); ?> right above your </head> tag in header.php and see if the plugin works.

    But, that might also duplicate the CSS and JS includes if they were hardcoded.

    Also in header.php, metadata starts under the doctype declaration, not under CSS and JS calls.

    Also, your IE6 conditional statement has curly quotes which show as junk characters and may prevent loading of csshover.htc

    Your <?php wp_footer(); ?> in footer.php call might also be missing, which will prevent a plugin from working, too.

    All your bottom page links are dead from a wrong directory call: /sitemap/sitemap/ rather than /sitemap/

    Moderator Mark Ratledge

    (@songdogtech)

    Forum Moderator

    Also, lots of validation errors, but most of them look to be unencoded ampersands in google maps URL code; though there is one missing closing div tag, which will effect page display.

    And all of your upper menu tags suffer from the /sitemap/sitemap/ problem

    I was able to contact the person who coded this and he noticed that the navigation was calling the categories to be ordered by ID:

    $navigation = get_categories(‘orderby=ID&order=asc&hide_empty=0&hierarchical=0&parent=’.$sitemap->term_id);

    I removed the ‘orderby=ID’ and the navigation is working fine now.

    I’ll see if I can do the same for the footer. I’ll also check into the validation errors, thanks for your help!

    I notice what you were talking about now with the sitemap/sitemap/ problem. Any suggestions for someone with very minimal php experience on how to call the right directory for those items?

    Moderator Mark Ratledge

    (@songdogtech)

    Forum Moderator

    Did you set “sitemap” as a wordpress category? Or as the default category prefix? Maybe thats where the double sitemap is coming from.

    Or, the bottom links are called in the footer, so there’s a similar block of php like for the top menu, too. See what php is in footer.php.

    Also, your email is also hardcoded, which is not good; you’ll get tons of spam. It should be encoded with javascript.

    And, these two footer links have double URLs, which is a different problem:

    <a href="http://new.central-church.org/http:/new.central-church.org/sample-post/">Welcome Message</a>
    <a href="http://new.central-church.org/http:/new.central-church.org/sample-post/">Welcome to Central United Methodist Church!
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Categories Won’t Display in Correct Order’ is closed to new replies.