• SabreWeb

    (@leecook)


    Hi All,

    I am having a problem with Permalinks. If I have permalinks set to default then everything works fine. If I change it to /%postname%/ then I get the following problem.

    I have a portfolios page using the CPO Themes – Panoramica Theme.

    In this page are various categories that each portfolio item is linked to. I can click on each portfolio item and it takes me to the more detailed portfolio item page. When I click on one of the categories on the left I get a 404 error.

    In the permalinks settings if I add ‘portfolios’ to the tags field then the problem above works the other way around. I can click on the categories but not on each portfolio item.

    You can see this in action at https://www.sabreweb.co.nz/our-work

    Someones help with this would be much appreciated.

    Thanks
    Lee

Viewing 9 replies - 1 through 9 (of 9 total)
  • Josh

    (@josh401)

    Right after you change your permalinks settings… delete your .htaccess file in the root of your WP install.

    Another one will be created… using the correct permalink structure.

    This may also help:
    https://stackoverflow.com/questions/2412567/wordpress-permalinks-problem

    Thread Starter SabreWeb

    (@leecook)

    Hi Josh,

    Thanks for the reply. I removed my .htaccess file. I then saved the permalink and it came up with a message at the bottom saying if it could write to .htaccess it would need the following code.

    I copied that code into a .htaccess file and uploaded it but I am getting the same problem.

    Josh

    (@josh401)

    Okay.. it might be something to do with the way the theme is registering the custom post type.

    Is the theme up to date with WP? Here is a link I found with a similar issue:
    https://www.ads-software.com/support/topic/permalinks-404-with-custom-post-type?replies=40

    Thread Starter SabreWeb

    (@leecook)

    The theme was created in April last year and say it requires version 3.1+ so i guess it is up to date.

    I took a look at the thread you posted but can’t really see an answer. I think I will read through it all again carefully to see if there is anything I can do.

    Josh

    (@josh401)

    Okay, let me know if you discover anything.

    Have you tried contacting the theme developer? Is it a free or a premium theme?

    Thread Starter SabreWeb

    (@leecook)

    Will do. Yes I have emailed the theme developer but not heard anything yet. Will update if I manage to solve this.

    Thanks for looking at it though.

    Thread Starter SabreWeb

    (@leecook)

    Hi, I have managed to solve this. I think this had something to do with my custom post types having portfolios in the slug. When I then used the categories these also had portfolios in the slug. Maybe this was causing some sort of conflict.

    I solved it by downloading the following plugin: https://www.ads-software.com/extend/plugins/remove-slug-from-custom-post-type/

    This removed the portfolios part of the slug from my custom post types and now the categories are working.

    Josh

    (@josh401)

    That’s beautiful!!

    Yeah, I’m just getting into custom post types myself.. and realizing the power of these from a developers standpoint. You can really customize these things!!

    So, this info helped me as well.. and I thank you!

    Thread Starter SabreWeb

    (@leecook)

    Yeah as a developer they can really help.

    I am pleased this has helped you as well.

    Cheers

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Permalinks problem with categories’ is closed to new replies.