Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • A follow-up for anybody who has the same issue as myself and KZeni. This is specific to custom post types and viewing (/wp-admin/edit.php?post_type=posttype) when you dont have any posts of posttype and you get a 404.

    Dellbridge’s solution from this post worked for me. You will need access to the code and future updates may break it unless it’s fixed by then, but there it is.

    Thanks for the solution, Dellbridge. Your code swap worked for me.

    Here was my situation. I added a few new Post Types. I was getting the 404 error when trying to see the list in the Admin (edit.php?post_type=myposttype) when there were no posts. It should just show a normal page with no posts, and a message saying no posts found, or whatever you specified in register_post_type label ‘not_found’ value.

    The really strange thing is that when I viewed the page with the web browser on the server itself it worked just fine, no 404. For the record I’m using WP 3 on iis7, and the rewrite rules generated by wordpress in the config file. So it seems that it’s something to do with the rewrites, permissions and this line of code, but I am at a loss as to what it is.

    Definitely something to fix for the next version. I really didn’t want to have to tell the client to ignore the 404 and to just add a post to make it go away, very tacky.

    Same error here. Cannot figure out how to fix it, reinstalling the plugin didn’t work. Any ideas for fixing this?

Viewing 3 replies - 1 through 3 (of 3 total)