Skip to content

Core AI: Title generation includes meta text, special characters, and creates invalid/overlong slug #399

@PriyankaGusani

Description

@PriyankaGusani

Description

While testing the Core AI title generation feature in WordPress 7.0 RC, I encountered an issue where the generated title is not clean and affects the slug as well.

Expected behavior:

Generate a clean, concise, SEO-friendly title
No extra formatting, explanations, or special characters
Slug should be short, readable, and optimized

Actual behavior:

Generated title includes:

Introductory/meta text:
Based on the content and context, here's an optimized title suggestion:

Markdown/special characters:

**, *, ###

Character count info:

(48 characters)

Additional explanation like:

Why this works:
The slug is auto-generated using the entire content, resulting in:
Extremely long slug
Inclusion of irrelevant words
Poor SEO structure

Why this is an issue:

SEO Impact: Long and messy slugs hurt rankings and readability
UX Issue: Users expect ready-to-use titles, not explanations
Data Quality: Invalid characters (*, #, etc.) should not be present
Automation Risk: If auto-saved, it can publish incorrect metadata

Step-by-step reproduction instructions

  1. Created a new post
  2. Added content
  3. Clicked on “Re-generate title”

Screenshots, screen recording, code snippet

Image

Environment info

WordPress Version: 7.0 RC (Beta)
Feature: Core AI (Title Generation)
Browser: Chrome (latest)
Setup: Local/Development environment

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except the AI plugin.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    Status

    In discussion / Needs decision

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions