In custom post types add/edit form > Advanced options > Slug : if I use a normal text like "premium" it works but not for "%category%/%year%".
I found solution from http://shibashake.com/wordpress-theme/custom-post-type-permalinks-part-2, the slug works but it seems like when I have this line of code...
add_filter('post_type_link', 'premium_posts_link_filter', 10, 3);
All Post type=Page is not working.. It said 'Page not found' instead. I traced it a while and found that the order of the rewrite rule is messed,
(.*)$
will match to use query
category=$matches[1]
Any help? Thanks in advance ;)