samueljeden
Forum Replies Created
-
Use this code
function change_json_ld_search_url( $str ) {
$home_url = trailingslashit( home_url() );
$str = $home_url . ‘?s={search_term}&post_type=product’;
return $str;
}
add_filter( ‘wpseo_json_ld_search_url’, ‘change_json_ld_search_url’, 10, 1 );i am trying to add this into my functions.php but it keeps throwing an error.
// add_filter(‘wpseo_json_ld_search_url’, ‘(URL HERE)?search={search_term}&post_type=product’);
: call_user_func_array() expects parameter 1 to be a valid callback, function ‘URL/?search={search_term}&post_type=product’ not found or invalid function name in
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Why was the cache feature removed?+1
Forum: Plugins
In reply to: [Relevanssi - A Better Search] In Relevanssi version 3.3.2 a bug?I also get this error
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 523800 bytes) in /home/maesltd/public_html/wp-includes/plugin.php on line 53
since updating to 3.3.2
Forum: Plugins
In reply to: [WooCommerce] Mystile: Images resized and enlarged. how can I fix it?Daitx – the code above assumes that you have uploaded the full size image, what size images are you trying to achieve?
Forum: Plugins
In reply to: [WooCommerce] Problems with Product variations, is there a limit?There should be no limit with the amount of variations – have you guys updated to the latest version of woocommerce?
The only limit which is applied to variations is the 50 a time when creating them due ( so that the page doesnt time out)
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Relevanssi and numbers.Hey Mikko,
there is no record of the 26341 word in the _relevanssi table.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Relevanssi and numbers.i can confirm this number 26341 is in the postmeta table too. i have checked via phpmyadmin for this to make sure it is being saved correctly.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Relevanssi and numbers.Hey Mikko,
yes, ive tried both those things – its a strange occurance.
as far as im aware it worked flawlessly before i updated wordpress to 3.6 – but that was only in tests.
it was only brought to my attention when someone in the shop front tried using the website for a product that indeed we did sell but could not be located by its 5 digit reference :/
do you want any details for login? i remember that you looked at my site for woocommerce issues before.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Relevanssi and numbers.Minimum word length is 2.
Forum: Plugins
In reply to: [WooCommerce] WooCommerce search not returning resultsmake sure your options in relevanssi are setup and you can use relevanssi for searching woocommerce, just make sure you add the flag for products
“&post_type=product”
Forum: Plugins
In reply to: [Relevanssi - A Better Search] SQL Error – Quick Editing WooCommerce ProductsNeeded to deactivate and reactive.
My Bad!That wouldnt be the problem no, the problem may be that it is still pulling the 1.6 templates when you need the 2.x templates…
you can manually move only the email files via ftp.
Forum: Plugins
In reply to: [WooCommerce] Selling songs within albumsYou could use Grouped products, with the parent product being the album.
Im not too sure about the demo of the song, that would be a custom job im afraid.
it will create a list like this : http://www.maes-group.co.uk/product/blue-ring-terminals/
It looks like your email files are out od date, try updating them manually via FTP.