• Hi. I’m new to wordpress, but I’ve spent two days reading posts without coming across anything similar to my problem, maybe it’s something obvious that I’m missing…

    When I try to get pretty permalinks on my site, they work on the pages and the blog entries, but not in my portfolio – that’s where I get the 404 error. When I go to the default permalink settings, I get the ?p=123 ugly permalinks on my pages and blog entries…but NOT on my portfolio, they show up as what seems to be pretty permalinks. So it’s half ugly, half pretty. I don’t know what to do.

    My site is hosted at GoDaddy, the WP is at the root, the .htaccess has there and is enabled for writing…., I’ve flushed the permalinks and all the other suggestions, yet nothing resolves it. Maybe I’m putting the wrong custom structure into the permalink settings, I just am not sure what I’m doing. Any help would be greatly appreciated.

    https://www.picturiapress.com

    Right now it’s set to default permalinks.

Viewing 2 replies - 31 through 32 (of 32 total)
  • Thread Starter zannasf

    (@zannasf)

    Yes, I manually edited the posts from the portfolio to match the blog entries, so they can view the image of the book, then click on it and it re-directs to the blog post. I don’t know about CPT or taxonomy, I’m sorry I can’t comment on that….

    WordPress is pretty new to me this is my first time out the gate with it.

    The reason I asked was to get a clear understanding of the way you structred your site.

    The reason for the 404 error is quite simple. You’re using blog posts with a permalink structure of /%postname%/ for the portfolio items but tried accessing it at URLs with the /portfolio/ sub-directory which obviously doesn’t exist until you’ve edited each post manually.

    There are solutions to this if you don’t want to edit the slug manually everytime:

    1. Use pages instead of posts with the portfolio page as parent.

    This is the easiest option. However I do want to mention, because you are using the /%postname%/ permalink structure for your blog posts, that you may encounter performance issues, ie slow page loading, as the number of pages increases. Caching plugins do help but does not relieve the problem entirely. Read this explanation if interested.

    2. Create portfolio custom post type with /portfolio/%postname%/ permalink structure.

    This is a new feature of WP 3.0 and is created for this exact purpose. It’s a bit more advanced and does require some setting up and code writing.

Viewing 2 replies - 31 through 32 (of 32 total)
  • The topic ‘Permalinks – 404 Error’ is closed to new replies.