Support » Plugin: Pods - Custom Content Types and Fields » Register Post Type 'has_archive'

  • Resolved capsx

    (@capsx)


    it seems that:

    ‘has_archive’ => (boolean) pods_var( ‘has_archive’, $post_type, false ),

    must be smthg like that:

    ‘has_archive’ => pods_var( ‘rewrite_custom_slug’, $post_type, str_replace( ‘_’, ‘-‘, $post_type_name ), null, true ),

    (‘has_archive’ = $posttype_slug)

    otherwise it is impossible to make CPT yearly archives …

    https://wordpress.org/plugins/pods/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Register Post Type 'has_archive'’ is closed to new replies.