Changeset 3438940
- Timestamp:
- 01/13/2026 07:05:40 PM (3 months ago)
- Location:
- current-post-shortcode
- Files:
-
- 2 edited
-
tags/3.1.0/readme.txt (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
current-post-shortcode/tags/3.1.0/readme.txt
r3438931 r3438940 6 6 Requires PHP: 7.4 7 7 Stable tag: 3.1.0 8 License: GPLv 3or later9 License URI: http s://www.gnu.org/licenses/gpl-3.0.txt8 License: GPLv2 or later 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 11 The Current Post Shortcode plugin allows you to display the current post's title and metadata using simple shortcodes. … … 24 24 25 25 = Display Fallback Meta Value: = 26 - **Post Meta with Fallback:** `[current_post meta="custom_field" default="Default Value"]` → Displays "Default Value" if the custom field is empty 26 27 `[current_post meta="custom_field" default="Default Value"]` → Displays "Default Value" if the custom field is empty 27 28 28 29 = Display Default Value for Zero Meta Value: = 29 - **Post Meta with Default for Zero:** `[current_post meta="custom_field" default="Default Value" skip="true"]` → Displays "Default Value" if the custom field value is zero 30 31 `[current_post meta="custom_field" default="Default Value" skip="true"]` → Displays "Default Value" if the custom field value is zero 30 32 31 33 == Installation == … … 54 56 = Can I use this shortcode in widgets or other areas of the site? = 55 57 56 -Yes, you can use these shortcodes anywhere shortcodes are supported in WordPress, such as posts, pages, widgets, Gutenberg blocks, and page builders like Elementor, Divi, WPBakery, etc.58 Yes, you can use these shortcodes anywhere shortcodes are supported in WordPress, such as posts, pages, widgets, Gutenberg blocks, and page builders like Elementor, Divi, WPBakery, etc. 57 59 58 60 = How do I handle empty or zero meta values? = 59 61 60 -You can use the `skip` attribute to skip empty or zero values and optionally display a default value.62 You can use the `skip` attribute to skip empty or zero values and optionally display a default value. 61 63 62 64 = Is there a fallback for meta values? = 63 65 64 -Yes, you can use the `default` attribute to provide a fallback value for empty meta values.66 Yes, you can use the `default` attribute to provide a fallback value for empty meta values. 65 67 66 68 == Changelog == -
current-post-shortcode/trunk/readme.txt
r3438931 r3438940 6 6 Requires PHP: 7.4 7 7 Stable tag: 3.1.0 8 License: GPLv 3or later9 License URI: http s://www.gnu.org/licenses/gpl-3.0.txt8 License: GPLv2 or later 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 11 The Current Post Shortcode plugin allows you to display the current post's title and metadata using simple shortcodes. … … 24 24 25 25 = Display Fallback Meta Value: = 26 - **Post Meta with Fallback:** `[current_post meta="custom_field" default="Default Value"]` → Displays "Default Value" if the custom field is empty 26 27 `[current_post meta="custom_field" default="Default Value"]` → Displays "Default Value" if the custom field is empty 27 28 28 29 = Display Default Value for Zero Meta Value: = 29 - **Post Meta with Default for Zero:** `[current_post meta="custom_field" default="Default Value" skip="true"]` → Displays "Default Value" if the custom field value is zero 30 31 `[current_post meta="custom_field" default="Default Value" skip="true"]` → Displays "Default Value" if the custom field value is zero 30 32 31 33 == Installation == … … 54 56 = Can I use this shortcode in widgets or other areas of the site? = 55 57 56 -Yes, you can use these shortcodes anywhere shortcodes are supported in WordPress, such as posts, pages, widgets, Gutenberg blocks, and page builders like Elementor, Divi, WPBakery, etc.58 Yes, you can use these shortcodes anywhere shortcodes are supported in WordPress, such as posts, pages, widgets, Gutenberg blocks, and page builders like Elementor, Divi, WPBakery, etc. 57 59 58 60 = How do I handle empty or zero meta values? = 59 61 60 -You can use the `skip` attribute to skip empty or zero values and optionally display a default value.62 You can use the `skip` attribute to skip empty or zero values and optionally display a default value. 61 63 62 64 = Is there a fallback for meta values? = 63 65 64 -Yes, you can use the `default` attribute to provide a fallback value for empty meta values.66 Yes, you can use the `default` attribute to provide a fallback value for empty meta values. 65 67 66 68 == Changelog ==
Note: See TracChangeset
for help on using the changeset viewer.