Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.
This repository was archived by the owner on Nov 18, 2024. It is now read-only.

Using a Common Pattern to Eliminate Repeated Code in Templates #332

@codersantosh

Description

@codersantosh

Description
The home, index, and archive templates share a similar code structure. To minimize code duplication, a shared pattern could be created and applied as needed. The archive template includes dynamic header text using the wp:query-title block, and since conditional tags don't seem to work in the editor, this can remain as is. However, the home and index templates appear to be identical, so unless there are plans to change the index template, both could utilize the same common pattern.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions