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

v4.3.0 - remove_post_type_support( $post_type, 'title' ) removes permalink field #11929

Closed
Jonnyauk opened this issue Nov 15, 2018 · 2 comments
Closed
Labels
[Feature] Extensibility The ability to extend blocks or the editing experience [Type] Enhancement A suggestion for improvement.

Comments

@Jonnyauk
Copy link

Describe the bug
We develop very bespoke, advanced themes for WordPress and often dev our own metaboxes or ACF Pro to create unique header options.

We sometimes create a bespoke 'title' field along ith other associated title options and on 'post update' save this data as post title. We want to keep all our 'title' options together!

To Reproduce
Steps to reproduce the behavior:

  1. Add code to theme functions.php:

// Remove title tag function mytheme_remove_title_tag() { remove_post_type_support( 'page', 'title' ); } add_action( 'init', 'custom_remove_title_tag' );

  1. Visit editor page
  2. Title removed (cool!) - but permalink field also removed - can't be edited ;(

Expected behavior
Should be able to remove title, but still maintain permalink field

Desktop (please complete the following information):

  • OS: MacOS
  • Browser Chrome
  • Version Version 70.0.3538.102 (Official Build) (64-bit)
  • WordPress 4.9.8
  • Guttenberg 4.3.0
@youknowriad
Copy link
Contributor

Thanks for the issue, as of #11874 we now have a new panel for the permalink, which solves this.

@Jonnyauk
Copy link
Author

Wow - that's fast fixing - AWESOME!!!!

I'm really glad to hear that permalink field has moved - felt like legacy code/UI caused it to be bundled below the title 'block' anyway (yea, I know it's not a 'block' but you know that I mean!!)

@designsimply designsimply added [Type] Enhancement A suggestion for improvement. [Feature] Extensibility The ability to extend blocks or the editing experience labels Nov 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Extensibility The ability to extend blocks or the editing experience [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants