• Hello,

    I think my permalinks are broken. Specifically, the links to categories don’t work.

    Structure: /%post_id%

    Category base: [blank]

    if you check out https://www.biresource.org, and try to click on one of the categories, the link gets you to biresource.org/category. Interestingly enough, the categories on the right-hand side menu work. Any help as to why? I can post other config details if needed.

    thanx,

    -Sheeri

Viewing 2 replies - 1 through 2 (of 2 total)
  • After upgrading or making any changes, have you reset your permalinks from the Admin again? Might give that a try and see if the problem persists.

    Thread Starter awfief

    (@awfief)

    If by reset, you mean going to Options->Permalinks, clicking “Update Permalink Structure” with the current values already there, and then copying the .htaccess again, then yes, I’ve done that. ?? It’s weird, because the links on the right hand side work, in the menu, but not in the articles themselves. It almost sounds like a function issue.

    (ie, link looks like this:
    General

    )

    the_category() is what’s failing, even though wp_list_cats() shows up correctly. (ie, the function called from the article just after “Filed under” is the_category(), whereas for the category listings, it’s wp_list_cats().

    the_category calls get_the_category_list. The function get_category_link gets the link, and the object function cat_name gets the name. So it looks like get_category_link is the problem, but I don’t know how to debug it. . .

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘category links within an article are broken’ is closed to new replies.