विवरण
A simple shortcode to display recent comments. You can use it in text widgets or with every shortcode enabled page builder.
The shortcode:
[recent-comments]
[recent-comments number=”10″ author=”” title=””]
There are seven parameters for this shortcode:
- author__not_in – Author ID to exclude from the list. Default: NULL to list all comments from all authors.
- number – Number of comments to return. Leave blank to return all comments. Default: 5
- order – How to sort comments: ‘ASC’ (Ascending – lowest to highest) or ‘DESC’ (Descending – highest to lowest). Default: DESC
- author – Do you want to hide the author? Just give an empty parameter: author=””
- title – Do you want to hide the title? Just give an empty parameter: title=””
- excerpt – Do you want to hide the excerpt? Just give an empty parameter: excerpt=””
- morelink – You can specify the text of the more link. Do you want to hide the more link? Just give an empty parameter: morelink=””
There is no mandatory parameter, you can use the shortcode as is.
IMPORTANT! This (or any other) shortcode is working only in a widget, if you or the theme has enabled the use of shortcodes in widgets. I’m not giving any description how you can do it, because there are a lot of posts out there. You can do a search for this: wordpress enable shortcodes in widgets
स्थापना
- Upload
surbma-recent-comments-shortcode
folder to the/wp-content/plugins/
directory - Activate the Surbma | Recent Comments Shortcode plugin through the ‘Plugins’ menu in WordPress
- That’s it. Now you can use the shortcode. 🙂
प्रश्नोत्तर
-
Why doesn’t work the shortcode in a text widget?
-
Because you have to enable this function. By default, WordPress does not allow you to use shortcodes in widgets. I’m not giving any description how you can do it, because there are a lot of posts out there. You can do a search for this: wordpress enable shortcodes in widgets
-
What does Surbma mean?
-
It is the reverse version of my last name. 😉
समीक्षाहरू
यस प्लगिनको लागि कुनै समीक्षाहरू छैनन्।
योगदानकर्ता र डेभलपरहरू
“Surbma | Recent Comments Shortcode” खुला स्रोत सफ्टवेयर हो। निम्न व्यक्तिहरूले यो प्लगिनमा योगदान गरेका छन्।
योगदानकर्ताहरू“Surbma | Recent Comments Shortcode” लाई आफ्नो भाषामा अनुवाद गर्नुहोस्
विकासमा रुचि छ?
आरएसएस द्वारा कोड ब्राउज गर्नुहोस्, एसभीएन रिपजिटरी हेर्नुहोस्, वा विकास लग को सदस्यता लिनुहोस्।
चेन्जलग
2.0
Release date: 2020-02-10
- TWEAK – Tested with WordPress 5.3 version.
- TWEAK – Updated to use a new way to deploy it to wp.org repo.
1.1.0
- Added a new parameter to exclude authors from the list.
- Compatibility check with WordPress 4.6 version.
- Fixed textdomain path for localization.
- Added new tags.
- Updated description.
1.0.1
- Fix localization.
- Prevent direct access to the plugin.
1.0.0
- Initial release.