Introduction
Flexi Recent Posts is a free WordPress plugin developed to display latest or recent posts anywhere in a flexible manner using shortcodes that comes with a number of attributes that can be selected to display post elements.
You can customise how posts are displayed using attributes. Posts elements that you can customise using attributes are: post title, post date, post category, tag, author, excerpt, dan featured image.
You can also set the style for each parameter via the included CSS file or via additional CSS in the customizer. It’s up to you.
Flexi Recent Posts was initially developed for personal use and was later decided to be shared with all WordPress users as an option. You can use it freely, and it will remain that way. There is absolutely no intention to commercialise it as a paid plugin.
However, if you insist on donating to me and this plugin, then perhaps, just perhaps, I would feel guilty if I refused. But I don’t yet have an easy and practical way to do so. I have to ask my wife first. Any suggestions? 😁
Flexi Recent Posts: Installation and Usage
As Flexi Recent Posts is not yet available on the WordPress plugin repository, installation is carried out by uploading the plugin via the menu:
Plugin » Add Plugin » Upload Plugin
After installation, activate the plugin, then Flexi Recent Posts can be used anywhere (posts, pages, etc.) as long as you can place the shortcode. The shortcode used is:
[flexiposts]
Flexi Recent Posts: Shortcode Attribute
Along with the short code used to display the latest posts, several attributes can be added to make customisation, as follows:
| Attribute | Value |
|---|---|
| title | 0 = Disable post title |
| cat | 0 = Disable post category |
| tag | 0 = Disable post tag |
| date | 0 = Disable post date |
| author | 0 = Disable post author |
| authorlink | 0 – Disable author link |
| image | 0 = Disable featured image |
| imagesize | Number – Featured image width |
| excerpt | 0 = Disable post excerpt |
| number | Number – Number of post |
| mode | 1, 2, or 3 (Display mode) |
| limit | Number – excerpt character limit |
| more | 1 = Enable read more link |
| Atribut | Nilai |
If the element you want to display using a shortcode already matches the default value of that attribute, you can omit the attribute in the shortcode. However, if you still want to use the attribute to ensure the element is displayed, that’s fine.
Flexi Recent Posts: Demo
Demo 1: Default
The default shortcode will display recent posts with attribute values set by the plugin.
[flexiposts]
---
Default attribute value:
• title="1"
• date="1"
• cat="1"
• tag="1"
• excerpt="1"
• author="1"
• image="1"
• number="3"
• limit="80"
• mode="1"
• authorlink="1"
• imagesize="100"

Seberapa Penting Perempuan Banjarbaru?

Rilis Plugin Pluz Optimize Featured Image

Hasil Akhir Mediasi Pesantren AQJ Banjarbaru
Demo 2
Display latest or recent posts with Mode 2 view, no author, no tag, and featured image width is 150px.
[flexiposts mode="2" number="2" author="0" imagesize="150" more="1" tag="0"]
Seberapa Penting Perempuan Banjarbaru?

Rilis Plugin Pluz Optimize Featured Image

Demo 3
[flexiposts mode="1" author="0" image="0" cat="0" tag="0"]
Seberapa Penting Perempuan Banjarbaru?
Rilis Plugin Pluz Optimize Featured Image
Hasil Akhir Mediasi Pesantren AQJ Banjarbaru
Demo 4
[flexiposts number="2" mode="3" imagesize="10" authorlink="0"]

Seberapa Penting Perempuan Banjarbaru?

Rilis Plugin Pluz Optimize Featured Image
Changelog
Flexi Recent Posts 2.4.0
Major security and performance update. Enhanced input validation, optimized database queries, and improved compatibility with WordPress 6.8+ and PHP 8.0+. Recommended for all users.
* Security: Enhanced input validation and sanitization for all shortcode attributes.
* Security: Added range validation for numeric attributes (number: 1-100, limit: 1-1000, imagesize: 0-2000).
* Security: Improved database query security with proper prepared statements.
* Security: Added comprehensive validation for taxonomy existence and term objects.
* Security: Enhanced post object validation before processing.
* Performance: Optimized WP_Query with `no_found_rows` and `update_post_meta_cache` for better performance.
* Performance: Improved transient deletion to support object cache systems.
* Performance: Added version number to cache keys to auto-invalidate on updates.
* Compatibility: Added explicit WordPress 6.8+ and PHP 8.0+ requirements.
* Improvement: Added plugin constants (FRP_VERSION, FRP_PLUGIN_DIR, FRP_PLUGIN_URL).
* Improvement: Added cleanup on plugin deactivation to remove transients.
* Improvement: Added hooks for ‘trashed_post’ and ‘untrashed_post’ to flush cache.
* Code Quality: Enhanced code documentation and type safety.
* Code Quality: Removed unnecessary variable assignments and improved logic flow.
Flexi Recent Posts 2.3.0
* Tweak: In `mode=”3″`, the `imagesize` attribute is now ignored to consistently enforce a 100% image width.
* Fix: Removed unnecessary bottom margin on the image in `mode=”3″` to ensure uniform vertical spacing between all elements.
* Technical: Updated plugin and CSS file versions.
Flexi Recent Posts 2.2.0
* Improvement: Optimized the loaded image size. The plugin now uses the ‘thumbnail’ size for modes 1 & 2, and the ‘medium’ size for mode 3 to improve efficiency and visual quality.
* Technical: Updated the plugin version in the header file.
Flexi Recent Posts 2.1.0
* Feature: Added the `more` attribute to display a “Read more »” link at the end of the excerpt.
* Fix: The “Read more »” link logic is no longer tied to the `title` attribute but is controlled by the new `more` attribute.
* Tweak: Changed the default value for the `imagesize` attribute from `0` to `100`.
* Documentation: Updated the `limit` attribute description to clarify that the limit is based on characters, not words.
* Documentation: Updated the header and attribute list in the readme.txt file.
Flexi Recent Posts 2.0.0
* Feature: Main shortcode changed to [flexiposts] for simplicity.
* Feature: Added the `imagesize` attribute to set a custom width for the featured image.
* Feature: Links on categories, tags, and the author’s name now open in a new tab.
* Feature: Automatically added a “Read More »” link to the excerpt if the title was hidden.
* Fix: The featured image is no longer linked to the post page to prevent unwanted hover behavior.
* Style: A complete overhaul of the CSS file for a new color scheme, layout, and element spacing.
* Structure: Refactored code in the `frp-display.php` file to improve readability and implement new display logic.
Flexi Recent Posts 1.0.0
* Initial release.

Tinggalkan sebuah Komentar