zanpo
Forum Replies Created
-
Forum: Plugins
In reply to: [Add & Replace Affiliate Links for Amazon] Odd symbol replacementMy website has the same problem, usually emojis and ascii symbols are being replaced by weird characters.
But this happens only when I use the “Add nofollow” button.
So if you just stick to simply add your affiliate ID, your posts are safe.It’s sad that the author seems to abandoned this project and doesn’t support it anymore, it was a great idea.
After hours of searching on Google for an alternative that add affiliate IDs to posts in bulk, I don’t seem to find one.Forum: Plugins
In reply to: [WP Word Count] Remove paragraph surrounding wpwc-reading-timeThanks for the tip.
It works….but only partially. It’s still not being displayed as a normal full sentence:This article has 19,606 words and an average reading time of 78 minutes
Forum: Plugins
In reply to: [WooCommerce] wooCommerce search is searching whole site, need products onlyProblem solved! It was an error form YOAST SEO plugin, I had ticked the boxes for ‘?replytocom’ and ‘Redirect ugly URL’s to clean permalinks. (Not recommended in many cases!)’, under the ‘permanent links’ menu.
As soon as I unticked them, the searches work perfect and &post_type=product is back in his place.
Thanks for the help and suggestions sta777 ??Forum: Plugins
In reply to: [WooCommerce] wooCommerce search is searching whole site, need products onlyyes, results are showing, but only when i use a single keyword, if I search for something with spaces in between like “black shoes” for example, it gets into an infinite loop.
Forum: Plugins
In reply to: [WooCommerce] wooCommerce search is searching whole site, need products onlyI tried with the filter and the product-searchform.php file, nothing seems to work. The searches are the same, with no post_type.
I tried it with twentytwelve theme and still no change, I guess this is not an error from my theme, but maybe from the woocommerce plugin?Forum: Plugins
In reply to: [WooCommerce] wooCommerce search is searching whole site, need products onlyHi, sta777, thanks for the quick response.
Actually I edited the code a little bit and used it like this, so it has a nice design for my theme:
<div id="headersearchform-container" class="group"> <form role="search" method="get" id="headersearchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" > <div class="group formborder"> <input type="text" value="" name="s" id="headers" placeholder="Ce produs cauti astazi?" /> <input type="submit" class="button" id="headersearchsubmit" value="Cauta" /> </div> <input type="hidden" name="post_type" value="product" /> </form> </div>
And used it via a snippet in my home page. But it still has the part with:
<input type="hidden" name="post_type" value="product" />
Which causes the “&post_type=product” to appear, no?
Also the problems with my searches are a little bigger, if I try to search by a keyword with spaces in between, like “key%20word”, my search link looks like “https://site.com/?s=key%20word” and goes in an infinite loop.
The search.php and searchfrom.php are the theme’s default:
Here is searchform.php: https://pastebin.com/UHU8Bghm
Here is search.php: https://pastebin.com/d3znLznz
Forum: Plugins
In reply to: [WooCommerce] wooCommerce search is searching whole site, need products onlyHello! Sorry to bump this old thread, but I have the same problem. I used the code suggested by sta777, but still no luck.
My search link is this type: “site.com/?s=keyword”, but I need it to be like this: “site.com/?s=keyword&post_type=product”.
Any suggestions?
Thanks