Opened 10 years ago
Last modified 3 weeks ago
#30705 new enhancement
Add parameter to get_the_term_list() to allow templating
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.5 |
Component: | Taxonomy | Keywords: | needs-testing has-patch has-unit-tests |
Focuses: | Cc: |
Description (last modified by )
Similar to #27238 the parameter $term_template is suggested to allow for user created formatting for get_the_term_list(), as opposed to the previous standard of simply linking to each list in the term.
The reasoning for the change is that general linking is not always the desired action for displaying term lists. The method for inclusion is similar to [30209].
Attachments (1)
Change History (8)
#4
@
10 years ago
- Keywords needs-unit-tests needs-patch added; has-patch removed
- Milestone changed from Awaiting Review to Future Release
Would like to see unit tests for this. Also, if we're going to add support here, we should also add it to functions that call get_the_term_list()
- namely, get_the_tag_list()
.
#5
@
3 weeks ago
A proposal was made to display categories and tags without links in the Gutenberg Post Terms block.
The Post Terms block uses get_the_term_list()
function internally, so I think this is related to this ticket.
This ticket was mentioned in PR #8393 on WordPress/wordpress-develop by @sukhendu2002.
3 weeks ago
#6
- Keywords has-patch has-unit-tests added; needs-unit-tests needs-patch removed
Trac ticket: https://core.trac.wordpress.org/ticket/30705
inclusion of $term_template argument