Anything Shortcodes
A powerful WordPress plugin that lets you retrieve and display virtually any data in WordPress using simple shortcodes. Effortlessly pull information from posts, users, options, and more — with support for dynamic attribute parsing, flexible formatting, and customizable output wrapping. It supports:
A powerful WordPress plugin that lets you retrieve and display virtually any data in WordPress using simple shortcodes. Effortlessly pull information from posts, users, options, and more — with support for dynamic attribute parsing, flexible formatting, and customizable output wrapping.
It supports: – Post Field – Post Meta – Term Field – Term Meta (coming soon) – User Field – User Meta – Link – Option – Function (whitelisted)
You can also: – Apply custom formatting (date, datetime, number, capitalize, uppercase, lowercase, strip_tags, etc.) – Add before/after text – Use fallback values – Use nested shortcodes inside attributes – Use URL parameters as values – Cache output – Secure and sanitize output
Shortcode Usage
General syntax: [anys type="TYPE" name="KEY" id="ID" before="TEXT" after="TEXT" fallback="TEXT" format="FORMAT" delimiter="DELIMITER"]
Attributes: – type — post-field , post-meta , user-field , user-meta , option , function (required) – name — The field name, meta key, option name, or function call (required) – id — Post ID or User ID (optional; defaults to current context) – before — Text to prepend before output (optional) – after — Text to append after output (optional) – fallback — Value if empty (optional) – format — Output formatting type (optional: date , datetime , number , capitalize , uppercase , lowercase , strip_tags , values , keys_values , etc.) – delimiter — Separator used to join multiple values (optional)
Supported Types and Examples
Post Field Retrieve standard post fields by name.
Examples:
- [anys type="post-field" name="post_title"] — Shows the post title.
- [anys type="post-field" name="post_date" format="date"] — Shows the post publish date (formatted).
- [anys type="post-field" name="post_author" id="123"] — Shows the author ID of post 123 .
- [anys type="post-field" name="post_content" fallback="No content"] — Shows the post content or fallback text.
Other fields supported: ID , post_name , post_excerpt , post_status , comment_status , ping_status , post_password , post_parent , menu_order , guid , post_type , post_mime_type , post_modified , post_modified_gmt
Post Meta Retrieve post meta by key.
Examples: