i have a site (http://fashionlog.com.br) with a custom post type 'fotolog' as you can see on the right side.
The posts and pagination of the blog (central column) work fine. But when it comes to the posts and pagination of my CPT it goes wrong.
If i dont use the flush_rewrite_rules( false ); function after my register_post_type() call in functions.php, i can see the posts but the pagination doesnt work. If a use the function it's the oposite, i can't see the posts (404) but i get the pagination!
I've been trying lots of times to switch the permalinks structure for tests, i checked my .htaccess file and its permissions, i tryed to "play" with the 'rewrite' parameter of the register_post_type() function, i've read and tryed the solution written here, here and also here... So far no luck, or am i missing something super obvious?
I'd really be grateful for some help.
flush_rewrite_rules()
like you say you are.flush_rewrite_rules()
is an extremely expensive process that shouldn't be done any more than is necessary. If you need to flush the rules just visit WP-Admin -> Settings -> Permalinks. It'll flush the rewrite rules for you. Doing this once is all that's necessary until you do something that changes the rules again (e.g. registering more taxonomies or CPTs).