Make WordPress Core

Opened 4 weeks ago

Last modified 3 days ago

#62326 assigned enhancement

Add title and description to post format archive block templates

Reported by: poena's profile poena Owned by: poena's profile poena
Milestone: 6.8 Priority: normal
Severity: normal Version:
Component: Editor Keywords: has-patch needs-testing has-screenshots has-testing-info
Focuses: template Cc:

Description (last modified by poena)

When a block theme includes the HTML file for a post format archive, the Site Editor shows the template without a description and without a human-readable name.
Instead it shows the name of the HTML file.

To reproduce:

Activate a block theme that has supports for post formats, for example, Twenty Twenty-Five.

Post format archive templates can not be created using the Site Editor interface yet, so you need to manually add the HTML file to the theme's templates folder.

Example file name for the link post format: taxonomy-post_format-post-format-link.html

Now go to Appearance > Editor > Templates.
Locate the template you added and confirm if the template has a readable name and description.

Expected result:

It would be a better user experience to show a readable name and description.


Also see: https://github.com/WordPress/gutenberg/issues/65319

Attachments (5)

template-title-description-november-1.png (4.0 KB) - added by poena 4 weeks ago.
Post format template title and description, after
post-format.png (332.3 KB) - added by rinkalpagdar 9 days ago.
after-patch.png (414.2 KB) - added by rinkalpagdar 5 days ago.
before-patch.png (140.7 KB) - added by parthvataliya 3 days ago.
after-patch.2.png (188.3 KB) - added by parthvataliya 3 days ago.

Download all attachments as: .zip

Change History (13)

This ticket was mentioned in PR #7694 on WordPress/wordpress-develop by @poena.


4 weeks ago
#1

  • Keywords has-patch added

#2 @poena
4 weeks ago

  • Description modified (diff)

@poena
4 weeks ago

Post format template title and description, after

#3 @poena
4 weeks ago

  • Keywords needs-testing added

#4 @rinkalpagdar
9 days ago

Hello @poena
I have followed each steps you have mentioned to test the name and description for the template but its not working for me. I have attached screenshot below for the same.
Thanks!
https://core.trac.wordpress.org/attachment/ticket/62326/post-format.png

#5 @im3dabasia1
6 days ago

  • Keywords has-screenshots added

Reproduction Report

Description

This report validates whether the issue can be reproduced.

Environment

  • WordPress: 6.8-alpha-59274-src
  • PHP: 8.2.25
  • Server: nginx/1.27.2
  • Database: mysqli (Server: 8.0.40 / Client: mysqlnd 8.2.25)
  • Browser: Chrome 129.0.0.0
  • OS: macOS
  • Theme: Twenty Twenty-Five 1.0
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

Actual Results

  1. ✅ The newly added template ie. taxonomy-post_format-post-format-link.html has an unreadable title and description

Supplemental Artifacts

https://i.postimg.cc/SxVpVxrJ/Screenshot-2024-11-26-at-11-23-11-AM.png

#6 @im3dabasia1
6 days ago

  • Keywords has-testing-info added

Test Report

Description

This report validates whether the indicated patch works as expected.

Patch tested: https://github.com/WordPress/wordpress-develop/pull/7694.diff

Environment

  • WordPress: 6.8-alpha-59274-src
  • PHP: 8.2.25
  • Server: nginx/1.27.2
  • Database: mysqli (Server: 8.0.40 / Client: mysqlnd 8.2.25)
  • Browser: Chrome 129.0.0.0
  • OS: macOS
  • Theme: Twenty Twenty-Five 1.0
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

Actual Results

  1. ✅ Issue resolved with patch.

Supplemental Artifacts

https://i.postimg.cc/s2XCLC6K/Screenshot-2024-11-26-at-11-23-58-AM.png

#7 @rinkalpagdar
5 days ago

Test Report

Description

This report validates whether the indicated patch works as expected.

Patch tested: https://github.com/WordPress/wordpress-develop/pull/7694.diff

Environment

  • WordPress: 6.8-alpha-59274-src
  • PHP: 8.2.25
  • Server: nginx/1.27.2
  • Database: mysqli (Server: 8.0.40 / Client: mysqlnd 8.2.25)
  • Browser: Chrome 131.0.0.0
  • OS: macOS
  • Theme: Twenty Twenty-Five 1.0
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

Actual Results

  1. ✅ Issue resolved with patch.

Supplemental Artifacts

https://core.trac.wordpress.org/raw-attachment/ticket/62326/after-patch.png

#8 @parthvataliya
3 days ago

Test Report

Description

This report validates whether the indicated patch works as expected.

Patch tested: https://github.com/WordPress/wordpress-develop/pull/7694.diff

Environment

  • WordPress: 6.8-alpha-59274-src
  • PHP: 8.2.26
  • Server: nginx/1.27.3
  • Database: mysqli (Server: 8.0.40 / Client: mysqlnd 8.2.26)
  • Browser: Chrome 131.0.0.0
  • OS: Linux
  • Theme: Twenty Twenty-Five 1.0
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

Actual Results

  1. ✅ Issue resolved with patch.
Note: See TracTickets for help on using tickets.