Skip to content

Add unescape param to term title#8

Merged
game-ryo merged 1 commit into
game-ryo:mainfrom
braican:fix/decode-html-entities
Jan 17, 2026
Merged

Add unescape param to term title#8
game-ryo merged 1 commit into
game-ryo:mainfrom
braican:fix/decode-html-entities

Conversation

@braican

@braican braican commented Jul 8, 2025

Copy link
Copy Markdown
Contributor

This change adds an $unescape parameter to the get_term_title() function so that terms with html entities (&, ', etc.) will render appropriately in the field.

This mimics what ACF does for their taxonomy field:

https://github.com/AdvancedCustomFields/acf/blob/1717327eafd0a245d44d23e7c7c1a04cc19c0d44/includes/fields/class-acf-field-taxonomy.php#L209

This fixes a bug where terms that contain special html characters render with their html entities:

Screenshot 2025-07-08 at 5 23 53 PM

@game-ryo

Copy link
Copy Markdown
Owner

Sorry for the late response. I overlooked this PR for a while.
Thank you for your contribution. I'm going to merge this now.

@game-ryo game-ryo merged commit 4396d99 into game-ryo:main Jan 17, 2026
@game-ryo

Copy link
Copy Markdown
Owner

Your contribution has been released in v1.0.11. Thank you again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants