[wp-trac] [WordPress Trac] #45516: Auto Draft title issue for custom post types
WordPress Trac
noreply at wordpress.org
Tue Nov 11 22:32:12 UTC 2025
#45516: Auto Draft title issue for custom post types
-------------------------------------------------+-------------------------
Reporter: rajanit2000 | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Future
| Release
Component: Posts, Post Types | Version: 5.0
Severity: minor | Resolution:
Keywords: has-screenshots has-test-info has- | Focuses:
patch has-unit-tests needs-copy-review | administration
-------------------------------------------------+-------------------------
Comment (by peterwilsoncc):
For posts that don't have title support, it's not possible to assume they
don't have a title. Title support indicates whether or not they are
supported in the editor interface.
For example, the WooCommerce post type `shop_order` doesn't support a
title but auto-generates one
[https://github.com/woocommerce/woocommerce/blob/42c06d73f27eb6e9c76816a849f822f442f4530d/plugins/woocommerce/includes
/class-wc-post-data.php#L281-L286 based on the order date].
The shortnotes plugin, which is used for social posts, similar to the
example in this ticket's description, also
[https://github.com/jeremyfelt/shortnotes/blob/fbe89dbbaa4a75b519916f2d88e03ea7f27b3085/includes
/post-type-note.php#L319 auto generates a title based on the content].
For copy, some options are:
* display the generated title if it exists
* the first N characters of the content if it exists
* (Post type) @ (long form date)
For SEO reasons, the title on the front end should be different for each
post. I recently messed up the SEO for some post types that don't support
titles in the editor on my site and Bing Webmaster tools displayed the
warning `Too many pages with identical titles.` The solution needs to
avoid that.
----
To be clear, because I feel my opinion is being somewhat misrepresented. I
AM NOT disagreeing with `(no title supported)` because @helen said so. I
respect Helen's opinion but have been known to disagree with her on
numerous occasions.
The order of operations for my comment was that I felt the new copy was
not suitable to solve this ticket so I reviewed the discussion and found
that it had previously been reverted due to much the same concerns I had.
It's easier to refer back to existing comments that repeat them.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45516#comment:73>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list