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

    https://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.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Wow, that managed to b0rk the forums.

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

    Thread Starter nicktoye

    (@nicktoye)

    Sorry about that, the link to the code is:

    https://pastebin.com/278723

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

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

    Thread Starter nicktoye

    (@nicktoye)

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

    Thread Starter nicktoye

    (@nicktoye)

    RewriteEngine On
    RewriteBase /
    RewriteRule ^https://www.nicktoye.co.uk/articles.php/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wordpress/wp-feed.php?category_name=$1&feed=$2 [QSA]
    RewriteRule ^https://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]

    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.

    Thread Starter nicktoye

    (@nicktoye)

    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.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Category problem’ is closed to new replies.