Descrizione
Just Likes and Dislikes is a fork of the excellent Post Like Dislike and Comment Like and Dislike by WP Happy Coders
Just Likes and Dislikes enables like and dislike icons for posts, pages and comments. Choose between multiple predefined icon sets or use your own custom like/dislike icons, the choice is yours.
Just Likes and Dislikes increases the interaction with the WordPress by enabling likes and dislikes buttons along with the count.
See full features list below:
- Select position of like/dislike display; before/after post/comment.
- Disable like/dislikes on any post type.
- Show likes, dislikes or both.
- Choose which order to show likes/dislikes in.
- Definable hover text.
- Choose to display like/dislike counts of zero.
- Choose method to restirct users to a single like/dislike; cookies, IP, logged in users
- 7 available pre-defined icon templates to choose from:
- Thumbs
- Hearts
- Checked/Cross-out
- Happy/Sad
- Plus/Minus
- Up/Down
- Fire/Extinguisher
- Custom like/dislike icon support
- Icon color selector
- Count color selector
- Sortable like/dislike columns in admin screens (can be disabled via option)
Shortcode
[just_like_and_dislike id=post_id]
Please replace post_id with the id of the post or remove id parameter for considering the post id as the id of global $post object
Custom Function
<?php echo do_shortcode('[just_like_and_dislike id=post_id]');?>
Please replace post_id with the id of the post or remove id parameter for considering the post id as the id of global $post object
Installazione
- Install the plugin through the WordPress Plugins screen.
- Activate the plugin through the Plugins screen in WordPress.
- Use the Just Likes and Dislikes settings page inside the Posts Menu to configure the plugin.
FAQ
-
What does this plugin do ?
-
This plugin provides the ability to add the like and dislike buttons for WordPress native posts, pages and comments.
-
I have enabled the plugin but like and dislike icons are not being displayed. What may be the reason ?
-
The plugin uses the_content filter to append like and dislike icons . So if your active theme’s posts template doesn’t use the_content filter to display posts content then the plugin won’t be able to display like and dislike icons.
You can still use the plugin, but you’ll have to add some custom code to your theme (see custom function above) to support it.
-
Is there any hooks available to extend the plugin ?
-
There are a few available to add new default icon template options, see the code for details.
-
I want to display in the post detail template. Do you have a custom function?
-
We do have a shortcode [just_likes_and_dislikes] which can also be used as custom function through
<?php echo do_shortcode('[just_likes_and_dislikes]');?>
-
How do I migrate from Posts Like Dislike and Comments Like Dislike?
-
There is no built in migration tool at this time, however if you have access to your SQL server (probably phpMyAdmin), you can run some simply queries to migrate the data. To do so, do the following steps:
*** WARNING: The following steps are destructive and a one time process. ***
- Disable Posts Like Dislikes, Comments Like Dislike, and Just Likes and Dislikes.
- Remove the Posts Like Dislikes and Comments Like Dislike plugins from WordPress.
-
Login to your SQL server and run the following SQL queries:
DELETE FROM
wp_commentmetaWHERE
meta_keyLIKE 'jlad_%';
wp_commentmeta
UPDATESET
meta_key= REPLACE(
meta_key`, ‘cld_’, ‘jlad_’);DELETE FROM
wp_postmeta
WHEREmeta_key
LIKE ‘jlad_%’;
UPDATEwp_postmeta
SETmeta_key
= REPLACE(meta_key
, ‘pld_’, ‘jlad_’);
` - Enable Just Likes and Dislikes.
This above will do two things:
– remove any existing Just Likes and Dislikes data from the database so there are no conflicts with the old data.
– rename the Posts Like Dislike and Comments Like Dislike data to Just Likes and Dislikes data, making it available to only Just Likes and Dislikes.If you want to go back to Post Likes Dislikes and Comments Likes Dislikes, you can reverse the process:
- Disable Posts Like Dislikes, Comments Like Dislike, and Just Likes and Dislikes.
- Remove the Just Likes and Dislikes plugin from WordPress.
-
Login to your SQL server and run the following SQL queries:
DELETE FROM
wp_commentmetaWHERE
meta_keyLIKE 'cld_%';
wp_commentmeta
UPDATESET
meta_key= REPLACE(
meta_key`, ‘jlad_’, ‘cld_’);DELETE FROM
wp_postmeta
WHEREmeta_key
LIKE ‘pld_%’;
UPDATEwp_postmeta
SETmeta_key
= REPLACE(meta_key
, ‘jlad_’, ‘pld_’);
` - Enable Posts Like Dislikes and Comments Like Dislike.
If there are enough requests I can add this feature to the plugin.
Recensioni
Non ci sono recensioni per questo plugin.
Contributi e sviluppo
“Just Likes and Dislikes” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.
Collaboratori“Just Likes and Dislikes” è stato tradotto in 1 lingua. Grazie ai traduttori per i loro contributi.
Traduci “Just Likes and Dislikes” nella tua lingua.
Ti interessa lo sviluppo?
Esplora il Codice segui il Repository SVN iscriviti al Log delle Modifiche. Puoi farlo tramite RSS con un lettore di feed.
Changelog (registro delle modifiche)
2.2
- Release date: April 25, 2023
- Fixed: Incorrect class function call.
2.1
- Release date: Jan 20, 2023
- Updated: Various translation related changes, thanks @alexclassroom.
2.0
- Release date: Jan 17, 2023
- Add sortable columns to the admin posts list
- Add filter for Yoast Duplicate Posts so the like/dislike count is reset
- Add proper meta data registration
- Merge Comments Like Dislike plugin functionality
- Removed like/dislike counts from excerpts and embeds
- Remove old internationalization code
- Fix widget width for Gutenberg
- Update the settings page to be clearer/cleaner
- Update font awesome to v6.2.1
1.0.8
- Release date: July 21, 2022
- WP 6.0 compatibility checked
1.0.7
- Release date: Feb 13, 2021
- Added post id to shortcode
1.0.6
- Release date: July 20, 2021
- WP 5.7 compatibility checked
1.0.5
- Release date: June 6, 2021
- Fixed login restriction mode issue
- Fixed ajax load issue
- Fixed some security issues
1.0.4
- Release date: Dec 11, 2020
- WP 5.6 compatibility checked
1.0.3
- Release date: Sept 7, 2020
- Added Post Like Dislike Count Info Metabox
- Added an option to display 0 by default
- Added alt tag in the custom image
- Removed default post type select
- Added [posts_like_dislike] shortcode
1.0.2
- Release date: April 4, 2020
- WP 5.4 compatibility checked
1.0.1
- Release date: May 8, 2019
- Added custom post type support
- Updated the backend settings save mechanism
- Added array sanitization functions
1.0.0
- Release date: May 8, 2019
- Initial plugin commit to wordpress.org repository