Make WordPress Core

Opened 2 years ago

Closed 21 months ago

Last modified 18 months ago

#62326 closed enhancement (fixed)

Add title and description to post format archive block templates

Reported by: poena Owned by: poena
Priority: normal Milestone: 6.8
Component: Editor Version:
Severity: normal Keywords: has-patch has-screenshots has-test-info commit
Cc: Focuses: template

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 (8)

template-title-description-november-1.png​ (4.0 KB ) - added by poena 2 years ago.
Post format template title and description, after
post-format.png​ (332.3 KB ) - added by rinkalpagdar 2 years ago.
after-patch.png​ (414.2 KB ) - added by rinkalpagdar 2 years ago.
before-patch.png​ (140.7 KB ) - added by parthvataliya 2 years ago.
after-patch.2.png​ (188.3 KB ) - added by parthvataliya 2 years ago.
Blog Home ‹ Template ‹ WordPress Develop ‹ Editor — WordPress.webm​ (2.6 MB ) - added by ruchirj 2 years ago.
Testing Report
before-patch.2.png​ (139.6 KB ) - added by praful2111 2 years ago.
after-patch.3.png​ (210.2 KB ) - added by praful2111 2 years ago.

Change History (21)

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


2 years ago
#1

  • Keywords has-patch added

#2 @poena
2 years ago

  • Description modified (diff)

@poena
2 years ago

Post format template title and description, after

#3 @poena
2 years ago

  • Keywords needs-testing added

#4 @rinkalpagdar
2 years 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
2 years 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
2 years 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
2 years 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
2 years 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.

#9 @ruchirj
2 years ago

Test Report

Description

This report validates whether the indicated patch works as expected.

Patch tested: ​https://patch-diff.githubusercontent.com/raw/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.4.2 / 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.

#10 @praful2111
2 years ago

Test Report

Description

This report validates whether the indicated patch works as expected.

Patch tested: ​https://patch-diff.githubusercontent.com/raw/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.

#11 @poena
22 months ago

  • Keywords commit added; needs-testing removed

#12 @SergeyBiryukov
21 months ago

  • Resolution → fixed
  • Status assigned → closed

In 59819:

Editor: Add title and description to post format archive block templates.

Follow-up to [52062], [52331], [55500].

Props poena, rinkalpagdar, im3dabasia1, parthvataliya, ruchirj, praful2111.
Fixes #62326.

#13 @wordpressdotorg
18 months ago

  • Keywords has-test-info added; has-testing-info removed
Note: See TracTickets for help on using tickets.