Forum Replies Created
Where did you change your email? We still see the same email here. Please help us by replying back on the purchased email so that it will be easier for us to send the updated plugin.
We don’t see any order with your username as used here or your email id firstname.lastname@example.org Please reply back on the purchased email so that it will be easier for us to send the updated plugin.
We will send you an updated version with the fix.
Will look into this and let you know.
Please share your php, wordpress, plugin versions and the order id.
Can you please specify which screen you are referring to?
There is a shortcode available most_liked_posts which you can use to load liked posts. Please check the manual here.February 15, 2018 at 2:57 am in reply to: Like/Dislike text added to end of generated excerpt #616
Yes, you are right. For those posts having short content, can you please add the same short content in excerpt as well. This will fix the problem. In the mean time, we are looking for any functionality which we can include to take care of this automatically.
Here are the instructions.
– You need to register the option in
WtiLikePostAdminRegisterSettingsfunction present inside
– You need to add the option with default value in
SetAllOptionsWtiLikePostfunction present in above file.
– You need to add an entry for deleting the option in
UnsetAllOptionsWtiLikePostfunction in above file.
– All the options load from
WtiLikePostAdminContentfunction present inside
wti-like-post-admin.phpfile. So you will have to add the field for your option there.
confirmResetwhich is used to reset the fields’ data. You will have to add your default value entry there.
– All the options get stored in wordpress options table.
– We follow a specific naming convention
wti_like_post_prefix for the options so that it won’t conflict with any other plugins/themes options. So please follow that.
Do let us know if you need any other input.
There is a setting called “Voting Period” which you can set to “only once” to disallow any user from revoting against the same post. There are other values like “One day” which allows user to revote the same post after 24hrs. Please check other values.
For the 2nd question, we think you are referring to any specific date and time for the voting/revoting to close. As of now, this functionality is not available.
Can you please explain a bit more when you say “it is not working properly”? It’s quite difficult to understand as there is not enough information.
– Were you previously using the lite version and now have started using the pro version?
> If this is the case, then you might already have some posts in your system which do not have the meta data for the like count. So go to our plugin setting page end section where you will find the button which says “Update Like Meta”. Hit this button and it will add the necessary like data to post meta field.
– Have you created the widget or that comes from the theme?
> We are not sure about the widget code. The like meta data contains numeric value. So the standard order by will not work. It has to be
'orderby' => 'meta_value_num'. The basic query for such numeric sorting looks like below.
new WP_Query( array( 'post_type' => 'post', 'posts_per_page' => get_option('posts_per_page'), 'paged' => 1, 'meta_key' => '_wti_like_count', 'orderby' => 'meta_value_num', 'order' => 'DESC' ) );
Please check and let us know.
You are creating the html content and appending content to it. But you are directly printing
GetWtiLikePost()Try appending the function output like below
$html .= GetWtiLikePost();
If the above does not work, try like this
$html .= GetWtiLikePost('put');
Do let us know if this worked or not.
Okay. Will look into this and update you. May be having option to show username or avatars will be more helpful.
Username is one kind of private information which we did not want to show. If you want to have bit larger gravatars, you can look into
wti-like-post-pro.phpfile. There you will find the code
get_avatar( $user_id, 32 ). The 2nd param is the avatar size which you can change to a different value.
You need to look into the function
1. There is a filter
wti_like_post_user_profile_linkavailable for which you need to attach a function. In that function you can link the avatar with the profile page.
2. You can see the function
get_avatar. The 2nd parameter is for the avatar size so you can put any value which is appropriate for you.
3. It does not seem possible with the existing code as it may break the layout but you can still try modifying the above function.