Plugin Directory

Changeset 3438940


Ignore:
Timestamp:
01/13/2026 07:05:40 PM (3 months ago)
Author:
mdforiduddin
Message:

Updating readme/assets from GitHub

Location:
current-post-shortcode
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • current-post-shortcode/tags/3.1.0/readme.txt

    r3438931 r3438940  
    66Requires PHP: 7.4
    77Stable tag: 3.1.0
    8 License: GPLv3 or later
    9 License URI: https://www.gnu.org/licenses/gpl-3.0.txt
     8License: GPLv2 or later
     9License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    1111The Current Post Shortcode plugin allows you to display the current post's title and metadata using simple shortcodes.
     
    2424
    2525= 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
    2728
    2829= 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
    3032
    3133== Installation ==
     
    5456= Can I use this shortcode in widgets or other areas of the site? =
    5557
    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.
     58Yes, 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.
    5759
    5860= How do I handle empty or zero meta values? =
    5961
    60 - You can use the `skip` attribute to skip empty or zero values and optionally display a default value.
     62You can use the `skip` attribute to skip empty or zero values and optionally display a default value.
    6163
    6264= Is there a fallback for meta values? =
    6365
    64 - Yes, you can use the `default` attribute to provide a fallback value for empty meta values.
     66Yes, you can use the `default` attribute to provide a fallback value for empty meta values.
    6567
    6668== Changelog ==
  • current-post-shortcode/trunk/readme.txt

    r3438931 r3438940  
    66Requires PHP: 7.4
    77Stable tag: 3.1.0
    8 License: GPLv3 or later
    9 License URI: https://www.gnu.org/licenses/gpl-3.0.txt
     8License: GPLv2 or later
     9License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    1111The Current Post Shortcode plugin allows you to display the current post's title and metadata using simple shortcodes.
     
    2424
    2525= 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
    2728
    2829= 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
    3032
    3133== Installation ==
     
    5456= Can I use this shortcode in widgets or other areas of the site? =
    5557
    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.
     58Yes, 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.
    5759
    5860= How do I handle empty or zero meta values? =
    5961
    60 - You can use the `skip` attribute to skip empty or zero values and optionally display a default value.
     62You can use the `skip` attribute to skip empty or zero values and optionally display a default value.
    6163
    6264= Is there a fallback for meta values? =
    6365
    64 - Yes, you can use the `default` attribute to provide a fallback value for empty meta values.
     66Yes, you can use the `default` attribute to provide a fallback value for empty meta values.
    6567
    6668== Changelog ==
Note: See TracChangeset for help on using the changeset viewer.