Skip to content

Add term-meta shortcode type#28

Open
amirrnazemi wants to merge 3 commits intodevelopfrom
feature/add-term-meta-type
Open

Add term-meta shortcode type#28
amirrnazemi wants to merge 3 commits intodevelopfrom
feature/add-term-meta-type

Conversation

@amirrnazemi
Copy link
Copy Markdown
Collaborator

Summary

Adds a new shortcode type term-meta for retrieving term meta values using get_term_meta().

Key Features

  • Supports id, taxonomy, key, single, before, after, fallback, format
  • Auto-detects current queried term when no ID is provided
  • Handles single and array meta values
  • Sanitized output and consistent structure with other shortcode types

Why

Enables displaying term meta (ACF, custom fields, SEO meta, WooCommerce taxonomy data) directly via AnyS shortcodes.

Example

[anys type="term-meta" id="15" key="color"]

Comment thread includes/modules/shortcodes/types/term-meta.php Outdated
Comment thread includes/modules/shortcodes/types/term-meta.php Outdated
Comment thread includes/modules/shortcodes/types/term-meta.php Outdated
Comment thread includes/modules/shortcodes/types/term-meta.php Outdated
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