Skip to main content
replaced http://wordpress.stackexchange.com/ with https://wordpress.stackexchange.com/
Source Link

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 herehere, here and also here... So far no luck, or am i missing something super obvious?

I'd really be grateful for some help.

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.

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.

Source Link
kevin
  • 1.1k
  • 3
  • 11
  • 22

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.

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.