• Hi,

    I am trying to disable this plugin for one CPT (the reason is that I can’t have parent/child structure because it conflicts with this plugin).
    When I do this: add_filter( ‘cptp_is_rewrite_supported_by_[my_cpt]’, ‘__return_false’ ); it works for that CPT and the conflict issue is resolved.

    However, other CPT returns 404 (and it works if I don’t have a code with filter).

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, @milannikolic

    From the admin panel, do you see the permalink settings for all custom post types? Or are those post types excluded?

    Thread Starter Milan.Nikolic

    (@milannikolic)

    Hi @toro_unit, thanks for the fast response.

    The CPT that I excluded in filter doesn’t show in admin panel, and when I did it it no longer conflicts with the hierarchy structure (parent/child). So that part works just fine.

    But then, another problems is shown for another CPT, where I have this for permalink: /%day%-%monthnum%-%year%-%post_id%
    (note that this worked fine before I created a filter to disable the other CPT)

    • This reply was modified 3 years, 9 months ago by Milan.Nikolic.

    @milannikolic

    I can’t reproduce the problem.

    Does this happen even if I disable other plugins etc. and use the default theme?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable CPT filter not working’ is closed to new replies.