Skip to content
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

Allow auto-slugs #1

Open
squarestar opened this issue Jan 30, 2015 · 1 comment
Open

Allow auto-slugs #1

squarestar opened this issue Jan 30, 2015 · 1 comment

Comments

@squarestar
Copy link

I've 2 suggestions for this:

  • An escape sequence that is not allowed in a WP slug, like @
  • A checkbox above the input to indicate that all the lines will only be titles
@rtpHarry
Copy link
Owner

rtpHarry commented Mar 7, 2015

Thanks for your interest in the project!

I just did some testing on it. If you enter an invalid or duplicate slug then WP will automatically provide you with a unique default based on the page title.

I tried leaving empty lines between each section like so:

Testing A Page

Testing Another Page

Which half works, but it seems that the last empty line is trimmed which causes the final page creation to fail.

Putting something invalid like the an @ symbol seems to work fine:

Testing A Page
@
Testing Another Page
@

Its not perfect but seems to be a work around to get your second suggestion to work in the current version.

As I was writing this plugin I imagined expanding the system at some point to allow it to work with all post types and also let you enter some kind of template so that you could tell it what fields to expect. To be honest I wrote this plugin for myself to save time developing (and I have used it on every site since then) but I haven't needed this additional functionality so I haven't come back to it.

I don't fully understand your first suggestion about the escape sequence?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants