WordPress.org

Ready to get started?Download WordPress

Forums

Pods - Custom Content Types and Fields
[resolved] Register Post Type 'has_archive' (5 posts)

  1. capsx
    Member
    Posted 4 months ago #

    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/

  2. Josh Pollock
    Member
    Plugin Author

    Posted 4 months ago #

    I can't find the line you are referring to. Can you please add a issue describing the problem more fully, and if you want add a pull request as well to our GitHub repo:

    https://github.com/pods-framework/pods

  3. Josh Pollock
    Member
    Plugin Author

    Posted 4 months ago #

    We just added the ability to set archive slug to Pods 2.3.19:
    https://github.com/pods-framework/pods/issues/2112

  4. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 4 months ago #

    This is now in Pods 2.4 (what Pods 2.3.19 became)

  5. capsx
    Member
    Posted 4 months ago #

    Josh: sorry, didn't answer to u, but it seems that the problem is already solved ;)

Reply

You must log in to post.

About this Plugin

About this Topic