rish30990
Forum Replies Created
-
Forum: Plugins
In reply to: [Like Button Rating ? LikeBtn] Does this plugin works with wp rest apiOk I got one issue. Not with the api but different one. Plugin is not showing no. of likes! I mean When I did like on post(after login and with mozila) then it shows digit 1 which indicates post has 1 like. But when I open same post on different browser(chrome) without login then it shows digit 1(means it has 1 like). Then I like it again and digit 1 converted into digit 2(since post has 2 likes now).
But issue here is that when I try to reload post (on mozila with login) to see if likes has been updated or not. Then it was till showing 1 likes on post. Why is that. It must have show 2 likes. But on mozila with login its still showing only 1 like and in chrome its showing 2 like. Why? It should have update likes-count for every user.
UPDATE
ok after refreshing in chrome too, now its showing 1 like on each browser. Means likes is not incrementing but remains at one no matter how many users do likes. It should have show total no. of likes, shouldn’t it?Forum: Plugins
In reply to: [Like Button Rating ? LikeBtn] Does this plugin works with wp rest apiThat’s awesome… it is working exactly as I wanted. Thanks for the solution ?? . But I had to make one change in following line of code
register_rest_field( 'post', 'post-meta-fields', array(
. In this line I changed name from “post-meta-fields” into “post_meta_fields”. Without this change It was showing post-likes with other details of post but I couldn’t fetch value of no. of likes. After using underscore I could fetch value. Name works better with “_” instead of “-“.- This reply was modified 7 years, 3 months ago by rish30990.
Forum: Plugins
In reply to: [Like Button Rating ? LikeBtn] Does this plugin works with wp rest apiHi,
Yes, I need to send no. of likes info also with post detail. If its possible to send likes count(how many likes) also with other details of post?- This reply was modified 7 years, 3 months ago by rish30990.
It worked as I wanted. Thanks for solution ?? . One last thing I want to confirm. Can we write shortcode in template file (Theme’s php file)? Something like do_shorcode(). Although I can find a way without using template file but if php shortcode is available then it would be better. Your linked documentation didn’t mention about php shortcode.
Regards
Forum: Plugins
In reply to: [Events Made Easy] It’s not showing event ending date/time!Hello @liedekef, Why it is so complex and also why I need to go through all of this just to show ending time of event. In every event plugin (which I have seen till now) ending time always use to display with start time. But your plugin is first one which I have seen with no ending time! Why is that?
I selected this just because it has frontend even submission option. But I was surprised that it don’t show ending time which is so basic info that we need to show to viewers.
Hello @raster02 I have one more question. Can I show logout link and user name on header section? Because right now after login user has to go to login page again to logout. It would be better if user get logout option on header so they can do logout from any page.
Hello @raster02 I have one more question. Can I show logout link and user name on header section? Because right now after login user has to go to login page again to logout. It would be better if user get logout option on header so they can do logout from any page.
- This reply was modified 7 years, 3 months ago by rish30990.
Ok got the solution of this one. Settings -> General. There click on anyone can register.
- This reply was modified 7 years, 3 months ago by rish30990.
Hi Oleg,
Now I tried your given solution also after seeing your reply. And it didn’t work, problem remains same after applying your solution.
The console error that I did show you, in that error the key line was “jQuery.cookie is not a function”. It means this issue is related to jquery cookie. That’s why I did add “jquery.cookie.min.js” (as shown in my previous reply) to get rid of this issue. This problem resolved completely by adding this script file in my theme.
It was working in wordpress default theme but in my theme to get it work I need to add script in header.php file after wp_here().
Regards,
Rishabh- This reply was modified 7 years, 10 months ago by rish30990.
Hi Oleg Balashkevich,
Thanks for reply, I was also searching for solution even before and after posting here and found one, here it is..
I just add below script in my header.php file after wp_head() function (it wasn’t working when I used to add before wp_head()) and issue resolved.
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
I didn’t try to edit plugins files because client make all plugins up to date so any changes in plugin will be removed soon when client will do update. That’s why I added solution/script in my theme file. But I will look forward for your plugin update. After plugin update I will do remove script from my header.php file because I don’t want to add any script after wp_head().
Forum: Plugins
In reply to: [WooCommerce] Send new order email to customer alsoI am having the exact same issue. New order email only sent to admin or custom email address but not to customers. Anyone found any solution for it? if yes then please share ??
Hello WillBontrager,
I did try your suggestion, here is what I did…
1. Deactivate all plugins except “Insert PHP (Your Plugin)” AND “Woocommerce (Because I was querying its products)”.
2. Apply wordpress default theme (Twenty Sixteen).
3. Did Execute this simple code
[insert_php] $args = array( 'post_type' => 'product', 'posts_per_page' => -1, 'product_cat' => 'armour-suits-helmets' ); $loop = new WP_Query( $args ); if ( $loop->have_posts() ) { while ( $loop->have_posts() ) : $loop->the_post(); echo '<a href="'.the_permalink().'">'.the_title().'<br>'; endwhile; } wp_reset_postdata(); [/insert_php]
OUTPUT
https://localhost:85/media/product/product1/Product1 https://localhost:85/media/product/product2/Product2 https://localhost:85/media/product/product3/Product3 https://localhost:85/media/product/product4/Product4
Then I did one change in code. I did replace “the_permalink()” functions with static url (https://www.google.com) just for testing purpose. And I get this output
Poduct1 Poduct2 Poduct3 Poduct4
Conclusion:
When I did use “the_permalink()” function in anchor tag to get url dynamically then output got messy But when I did use static url instead of “the_permalink()” function then output was correct. But problem is I can’t use static url inside while loop!
Please do a test by yourself to understand what I mean (in case if my explanation is not understandable).
Any suggestions, what should I do?
Hello WillBontrager,
Why function in anchor tag doesn’t work?
I am trying to add “the_permalink” in anchor tag in while loop of my archive like page BUT its not working!Here is the code
<ul class="products"> [insert_php] $args = array( 'post_type' => 'product', 'posts_per_page' => -1, 'product_cat' => 'armour-suits-helmets' ); $loop = new WP_Query( $args ); if ( $loop->have_posts() ) { while ( $loop->have_posts() ) : $loop->the_post(); echo "<a href='".the_permalink()."'>Click here</a>"; endwhile; } wp_reset_postdata(); [/insert_php] </ul>
The above anchor tank suppose to show url like this
Click Here
BUT it shows this output instead
https://demo.eliteimpexco.com/product/picklehaube-helmets/Click here
Forum: Plugins
In reply to: [WooSwipe WooCommerce Gallery] Lightbox and Thumbnail sizeLight box should be optional… It is just not good.
Ok I figured it out. Actually problem solved not by delaying email but with different solution which I get to know with the help of this article https://calderaforms.com/doc/getting-submission-data-in-a-form-processor/