Custom post type, permalinks & pagination, going wrong

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.

Read More

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.

Related posts

Leave a Reply

1 comment

  1. Make sure your query has paged in it like so:

    query_posts('post_type=fotolog' . '&paged=' . get_query_var('paged'));
    

    Check to be sure that you don’t have page and a post type with the same permalink /foflog and /fotolog/your-post-name-here