Closed timiwahalahti closed 5 years ago
can you elaborate? I think we need with_front to be true to allow for previews.
Nope, with_front
is not needed for previews. It affects only the permalink structure for singular forms.
Lets say we have set custom permalink structure to be /blog/%postname%
, this causes singular form preview addresses to be /blog/libre-forms/%slug%
. With setting with_front => false
we can get rid of that /blog
part.
When registering cpt for forms, we should use
because in some rare cases, permalink structure contains also something else than data related to post, eg /blog/ something similar.