New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make wplf-form post type unpublic #23
Comments
Oh, actually. Making a redirect isn't by far best practice in this situation, setting 404 would be a much better solution (props @TeemuSuoranta).
This way post type is public, preview and single view works for logged in users, but visitor gets 404. Google does not index 404, but there may still be issues with some plugins that generates sitemaps. However it's better situation than current, at least in my opinion. There is also need for setting to disabling this feature on single forms, maybe a filter to disable it in all forms. Also a notification or some sort of message in editor or form view is needed to indicate that this don't work unless you are logged in. Any thoughts? Because of time related matters, I wouldn't want to do PR if it wont be merged. |
LGTM! If you can test and PR this, I'll gladly merge this :) Awesome ! |
We definitely don't need the metabox. I don't see a use case for |
@k1sul1 good catch! That's what happens when you submit PR after midnight 😹 If metabox if removed, maybe that filter and notice should be kept tho? |
👍 for the notice Having the filter is ok. Just make sure forms are non-public by default. :) Now it seems to be the other way round. Thanks <3 |
PR is now updated; meta box got removed and permalink notice in post.php fixed to show up only when editing Forms have been non-public, but I did double-check that now. |
I think that forms should not be public. In most of the use cases (at least when i'm using), those are used via shortcode rather than linking directly to single form. Public single forms shows up in search engines and sitemaps, which isn't that nice. Especially if theme developer has forgotten to style basic single page for some reason.
Antti likes to have preview of form, and that's important in my opinion too. Preview can't be achieved unless post type is public, but maybe we could make a redirect when entering single form if you're role is subscriber or you haven't logged in. Other possible way that comes to my mind, is render form in html below editor while editing it. Kinda same way as field detector works now.
The text was updated successfully, but these errors were encountered: