Forum Replies Created
-
AuthorPosts
-
WebtechideasKeymaster
As a quick fix, you can possibly add a line of code which will prevent the like/unlike buttons being rendered. Let’s say you want to exclude
type1
post type.– Open the file
wti_like_post_site.php
in a text editor.
– Search for the functionGetWtiLikePost
.
– Just before this line$ip = WtiGetRealIpAddress();
, add the following code// Exclude depending on post type $post_type = get_post_type( $post_id ); $excluded_types = array('type1'); if ( in_array( $post_type, $excluded_types ) ) { return; }
Note:
– If you want to exclude more than 1 post type such astype1
andtype2
, you need to use$excluded_types = array('type1', 'type2');
in the above code.Do let us know if this worked or not.
Thanks
WebtechideasKeymasterSo it works with your template on local but not on live. Are you sure all the theme files are updated/moved to the live server?
WebtechideasKeymasterNot sure what you mean by “wordpress test environment”. Are you referring to wordpress default theme or on a different set up with exactly the same plugins and theme as on your live site. Since this works on our demo site http://demowp.webtechideas.com/, we are unsure what’s wrong at your end.
We need to have a look at a live site to know the issue and suggest you with ant fix. Can you please set up a demo site with exactly the same set up? Also please provide admin access of the demo site so that we can investigate the issue.
Thanks
WebtechideasKeymasterPlease activate the plugin so that we can check why it’s breaking your site. Before that can you activate this on default wordpress template and see whether you still have the problem or not.
WebtechideasKeymasterCan you please share the site url for us to check? You can also check by modifying the following line in wti_like_post.js file
jQuery(".jlk").on("click", function(e){
to
jQuery(document).on("click", ".jlk", function(e){
Thanks
WebtechideasKeymasterYou can achieve this by using the filter hook
wti_like_post_load_message
available for this message. You can check if the current message is not the default or thank you message, then you can show your message. Please refer to the manual for implementation.WebtechideasKeymasterWere you able to download the plugin properly? Do you already have another instance (lite version) of the plugin installed on your system?
WebtechideasKeymasterYes, its included.
WebtechideasKeymasterI can see this link showing “Love it/Hate it” and the voting process works. So not sure why you have mentioned this to be not working.
WebtechideasKeymasterSure, we will remove this in the next version release.
WebtechideasKeymasterThe issue was with not passing the parameter for no. of posts while getting the posts for a category. We have added the fix and it will be available in the next release. However for a quick solution for you, we have sent an updated file. Please have a back up of existing plugin folder and then check by replacing the attached file on your server.
Do let us know if you have any other queries.
Thanks
WebtechideasKeymasterThis hook is associated with the ajax call that is used for processing the voting. So how you are testing the above code to work?
You can check by sending a simple email in the above hook. Please refer to the manual for better instructions.
WebtechideasKeymasterPlease drop an email with access details as that will give a better picture of the situation
WebtechideasKeymasterWe will look into this again.
March 11, 2014 at 4:14 am in reply to: Disable Like/Unlike on certain pages or only allow it on certrain categories #83WebtechideasKeymasterThere is a conflict with “Exclude selected categories” functionality. So we will need to find a work around for this.
-
AuthorPosts