WordPress.org

Ready to get started?Download WordPress

Forums

Category problem (11 posts)

  1. NickToye
    Member
    Posted 9 years ago #

    Hi, I am having trouble with my categories link on my site.

    http://www.nicktoye.co.uk

    This is the code from the template-functions-category.php

    When you click on the link it shows up the domain name twice and consequently fails to load the category.

    Many thanks in advance.

  2. Jennifer Ledbetter Clay
    Member
    Posted 9 years ago #

    Wow, that managed to b0rk the forums.

  3. ColdForged
    Member
    Posted 9 years ago #

    Always, always, always post code in a pastebin (like http://pastebin.com). Also, we typically can look at the code in WordPress ourselves without needing it copied here.

  4. Splee
    Member
    Posted 9 years ago #

  5. NickToye
    Member
    Posted 9 years ago #

    Sorry about that, the link to the code is:

    http://pastebin.com/278723

  6. ColdForged
    Member
    Posted 9 years ago #

    Nick, what does your template look like? (Pastebin it, please.)

  7. MattRead
    Member
    Posted 9 years ago #

    NickToye, what do you have the permalinks for categories set to? (in Options > Permalinks)

  8. NickToye
    Member
    Posted 9 years ago #

    ColdForged, I think I have pastebin it, if you click that link you will see it there, or have I got that mixed up.

  9. NickToye
    Member
    Posted 9 years ago #

    RewriteEngine On
    RewriteBase /
    RewriteRule ^http://www.nicktoye.co.uk/articles.php/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wordpress/wp-feed.php?category_name=$1&feed=$2 [QSA]
    RewriteRule ^http://www.nicktoye.co.uk/articles.php/?(.*) /index.php?category_name=$1 [QSA]
    RewriteRule ^author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wordpress/wp-feed.php?author_name=$1&feed=$2 [QSA]
    RewriteRule ^author/?(.*) /index.php?author_name=$1 [QSA]
    RewriteRule ^([0-9]{4})/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/?([0-9]+)?/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
    RewriteRule ^([0-9]{4})/?([0-9]{1,2})/([0-9]{1,2})/([_0-9a-z-]+)/(feed|rdf|rss|rss2|atom)/?$ /wordpress/wp-feed.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA]
    RewriteRule ^([0-9]{4})/?([0-9]{1,2})/([0-9]{1,2})/([_0-9a-z-]+)/trackback/?$ /wordpress/wp-trackback.php?year=$1&monthnum=$2&day=$3&name=$4 [QSA]
    RewriteRule ^feed/?([_0-9a-z-]+)?/?$ /wordpress/wp-feed.php?feed=$1 [QSA]
    RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$ /wordpress/wp-feed.php?feed=$1&withcomments=1 [QSA]

  10. ColdForged
    Member
    Posted 9 years ago #

    ColdForged, I think I have pastebin it, if you click that link you will see it there, or have I got that mixed up.

    That's the code for template-functions-category.php which comes with every WordPress installation. I was asking for the index.php from your theme.

    And Matt meant what is your permalink structure specified under "Options => Permalinks", not your .htaccess file.

  11. NickToye
    Member
    Posted 9 years ago #

    I've sorted it now, instead of leaving the box for categories blank, I had put in the domain name.

    Thanks anyway, now i'm going to stick my head in the blender for being such a dope.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.