routing=”enable” does not work with ACF custom posts : FIX
-
Hello everyone,
First, thanks for the wonderful job you’ve done with the plugin!
I had an issue where the parameter routing=”enable” crashed the website when we are using a custom post type (created via ACF). Indeed, I was getting a PHP critical error when I tried to load the page with some predefined filters.I found the fix right when I was writing here to ask for some help, so I figured I would share it so that you could save the several hours it took me.
The issue actually comes from ACF, as, by default when you’re creating a custom post type, it asks WordPress to deal with the URL in a way that simply does not work in our case.To fix it, go to:
ACF -> Post types -> Select your post type -> Advanced settings -> URL -> query variables support -> select “None”. It is not very intuitive mais if something else is selected then you will not be able to access your page with filters already selected.Have fun !
The topic ‘routing=”enable” does not work with ACF custom posts : FIX’ is closed to new replies.