Closed bgatellier closed 8 years ago
Strange. In your custom post type code you've setup your own slug (which is the same as the default) but as you added it, you have to update the rewrite rules. Try to update the permalinks and let me know how it goes.
Oh damn! I forgot that point... Sorry for the duplicate issue (I saw them but I should have done a bad manipulation last time I tried). Now everything works as expected.
I'm coming from Symfony, and Themosis is the way I discover Wordpress so I still have to update my knowledge ;-)
Thanks for the fix and for the framework.
No problem. Glad your issue is solved.
Hi,
I just installed the latest version at this time (1.2.3). Then I created a custom post type following the bookstore example. I am facing a strange problem were the route is found only with previews, but not if the post type is published. Here are my codes:
admin/books.php
controllers/BooksController.php:
routes.php: