Forum Replies Created
-
AuthorPosts
-
WebtechideasKeymaster
There are so many plugin users and they have different requested functionality. We include those which are generic and add filters for those which will help in customizing as per user. So the hook is there which will help you in modifying the output. Since we had done this for you earlier, we must have sent code/file to you. Please check your mailbox and search for
wti_like_post_load_message
.Thanks
WebtechideasKeymasterWe think we had done this for you earlier using hook. If you have changed the theme or our plugin, then look for the previous one. The hook available which you can use is:
apply_filters( 'wti_like_post_load_message', $msg, $post_id, $like_count, $unlike_count )
You need to attach a function to the above hook. There you need to check for the like, unlike count. Depending upon those values you will have return the message.
Thanks
WebtechideasKeymasterThe most liked posts shortcode will get you the result in a tabular format. You will have to pass the post type.
WebtechideasKeymasterFor vote count, please refer here.
For vote buttons, please refer here.
WebtechideasKeymasterThe functions are
GetWtiLikeCount($post_id)
,GetWtiUnlikeCount($post_id)
,GetWtiTotalCount($post_id)
to get the like, unlike and total counts respectively.WebtechideasKeymasterThe best way to get these things is to look into the codes.
For like button, it should be something like
<a rel="nofollow" data-nonce="{$data_nonce}" data-post_id="{$post_id}" data-task="like" class="lbg-style1 like-{$post_id} jlk"><img title="Like" src="{$image_url}"><span class="lc-{$post_id} lc">{$like_count}</span></a>
For unlike button, it should be something like
<a rel="nofollow" data-nonce="{$data_nonce}" data-post_id="{$post_id}" data-task="unlike" class="unlbg-style1 unlike-{$post_id} jlk"><img title="Unlike" src="{$image_url}"><span class="unlc-{$post_id} unlc">{$unlike_count}</span></a>
The variables are self-explanatory. If you want to use the plugin buttons, then
<?php GetWtiLikePost(); ?>
will do the job for you.Thanks
WebtechideasKeymasterThe like buttons do not display on the activity stream. When a user likes or dislikes any standard or custom post, that activity will be shown up on buddypress activity screen. The plugin features mentioned here http://www.webtechideas.in/product/wti-like-post-pro/
WebtechideasKeymasterHow do you define a charity here? Is this a simple post where users can come and like/unlike that post? Having a start and end date as a configuration setting will be global to the site and can’t be applied to specific posts. In such case we would like you to use “Exclude post/page IDs” option. Let’s say Charity 1 (post id 1) will be open for May 2015. Once May is over, you can put the post id 1 in the exclude field. So the like/unlike options will no more come up for that charity. In this way you can keep on adding more post ids to this option as months pass by.
Please let us know if this works for you or not.
Thanks
WebtechideasKeymasterWe have checked the wordpress codex to get the common posts for multiple categories but unfortunately did not find any solution. We are still looking out for any possible solution.
WebtechideasKeymasterThe code for showing thumbnail is not there. So you will have to modify the
WtiMostLikedPostsShortcode
function to show the thumbnail. If you can’t do that and want us to do that for you, then please drop an email with the version no, order id and the email id used to purchase.Thanks
WebtechideasKeymasterHere are the instructions:
– You will find a templates folder within our plugin. There is a file named most-liked-posts.php.
– Copy and put it inside your theme folder.
– Now create a page and set the page template as this file.When you visit the page, you should see the posts shown in sorted order of vote counts.
Please note that you may have to change the file layout to match with your site’s layout. Do let us know if you have any other queries or find difficulty in implementing the above.
Thanks
WebtechideasKeymasterWe have sent you a modified template file. Please check that and let us know if that worked for you or not. For reference the modified code to be used is put below
// Get the current page $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; // Query to get all posts sorted by like count after a specific date $the_query = new WP_Query( array( 'post_type' => 'post', 'posts_per_page' => get_option('posts_per_page'), 'paged' => $paged, 'meta_key' => '_wti_like_count', 'orderby' => 'meta_value_num', 'order' => 'DESC' ) );
WebtechideasKeymasterPlease share your site page url where you have implemented this. If you are using the “Most Liked Posts” page template provided with the plugin, then that will show the most voted posts in last 7 days. So you will have to change that. Vote some more posts and see if it still shows only 1 post or not. Please check the codex for more details. Please let us know if this helped you or not.
WebtechideasKeymasterThere is a language file which can be changed to replace the “like this” text and the approach for doing this is mention on the wordpress codex. If that will be a difficult task for you, then please let us know and we will send you the modified file. In such case, please reply back on the purchase email that you had received.
Thanks
WebtechideasKeymasterThat is for internal use only. It takes care of different conditions as set on the plugin configuration settings page. So if you use that and try to manipulate the votes, then it may not allow you to do so. So we would suggest to create your own piece of code which will work as per your requirement.
-
AuthorPosts