andyt1980
Forum Replies Created
-
Forum: Plugins
In reply to: [Relevanssi - A Better Search] SKU search stopped workingYes _sku custom field is still set up in the indexing settings. Would the main wordpress debugging file help identify any issues?
Forum: Plugins
In reply to: [Accordion] Accessibility: Keyboard NavigationHi,
Any update on this please?
Also there is another accessibility issue that has been flagged:
Certain ARIA roles must contain particular children
Ensures elements with an ARIA role that require child roles contain them
It needs one of the following addressed:- Element has children which are not allowed (see related nodes)
- Element has no aria-busy=”true” attribute
Forum: Plugins
In reply to: [Accordion] Accessibility: Keyboard NavigationAny response appreciated on this please
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Woocommerce SKU ResultsThanks, I’ve tried the code below and it seems to be working, although I’m not sure how relevant the first results are:
/* Order search results so in stock items first */
add_filter( 'relevanssi_modify_wp_query', 'rlv_adjust_search' ); function rlv_adjust_search( $query ) { $query->set( 'meta_key', '_stock_status' ); $query->set( 'orderby', 'meta_value_num' ); $query->set( 'order', 'ASC'); return $query; }
However, you mentioned relevance on the orderby. How would I add ‘meta_value_num’ and ‘relevance’ parameters to the same argument?
Thanks,
- This reply was modified 1 year, 11 months ago by andyt1980.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Woocommerce SKU ResultsThank you for this, I think the custom field option may be the way to go for us.
Just one other query please. I’m using the following code to make sure out of stock items are shopwn at the end of any product listings/archives:
add_filter( 'woocommerce_get_catalog_ordering_args', 'bbloomer_first_sort_by_stock_amount', 9999 ); function bbloomer_first_sort_by_stock_amount( $args ) { $args['orderby'] = 'meta_value'; $args['meta_key'] = '_stock_status'; return $args; }
However, this is not working for search results as I’m still seeing out of stock items first.
Is there any way around this?
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Woocommerce SKU ResultsThank you, working great now!
Is there some way to make the search prioritise the product title.
Currently if someone searches for ‘Pans’ its returning search results with products like ‘Induction Hob’ because it has the word ‘Pans’ in the product description. However, any actual pan product such as ‘Steel Induction Frying Pan’ is showing much further down the results list.
Forum: Plugins
In reply to: [Max Mega Menu] Display issuesThank you I will try this and get back to you.
Any idea why the drop-down icon would stop displaying on one specific parent item only?
Thanks.
Forum: Plugins
In reply to: [WooCommerce] Removing Legacy DataHi,
I’ve tried clearing browser and server cache but it doesn’t help, even tried using a different computer which has never visited the website and it still shows that ghost 37 orders.Forum: Plugins
In reply to: [WooCommerce] Removing Legacy DataThank you, I’ve tried following those steps but with that extra line in the wp-config.php file the plugin wont delete, it just hangs on ‘Deleting…’
If I remove that line then the plugin deletes successfully but still leaves that ghost ‘All (37)’.
Forum: Plugins
In reply to: [Lightbox & Modal Popup WordPress Plugin - FooBox] Lightbox with CaptionsThanks that works, but can it not pull through captions from the caption metadata field thats already been entered in the media library?
Forum: Plugins
In reply to: [Sort Export for Gravity Forms] Saving OrderThanks that sounds great!
Would it also be possible to have those fields pre-selected ready for export?Forum: Plugins
In reply to: [Post My CF7 Form] Autopublish IssueI’ve removed the offending code from that line and now I’m getting the same error but it references line 166 which is the start of the CF7 filter.
Can you please double-check if this is correct?:
add_filter( ‘cf7_2_post_status_orders’, ‘publish_new_post’,10,3); function publish_new_post($status, $ckf7_key, $submitted_data){ return ‘publish’; }
- This reply was modified 3 years, 3 months ago by andyt1980.
Forum: Plugins
In reply to: [Post My CF7 Form] Autopublish IssueAfter checking the debug.log I’m seeing alot of these PHP errors:
PHP Warning: Use of undefined constant ‘cf7_2_post_status_orders’ - assumed '‘cf7_2_post_status_orders’' (this will throw an Error in a future version of PHP) in /home/site/public_html/orders/wp-content/themes/hello-elementor-child/functions.php on line 25 [26-Aug-2021 10:01:22 UTC] PHP Warning: Use of undefined constant ‘publish_new_post’ - assumed '‘publish_new_post’' (this will throw an Error in a future version of PHP) in /home/site/public_html/orders/wp-content/themes/hello-elementor-child/functions.php on line 25
Any ideas?
- This reply was modified 3 years, 3 months ago by andyt1980.
Forum: Plugins
In reply to: [Post My CF7 Form] Autopublish IssueHow would I check that? I’m presuming its not working because posts are being set as draft still.
Forum: Plugins
In reply to: [WooCommerce] Incorrect Product DisplayAs I mentioned I’ve tried switching to the default Twenty-Twenty theme but it didn’t help.