Skip Navigation

[Closed] Adding custom field to search order within a view

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 1 year, 5 months ago.

Assisted by: Minesh.

Author
Posts
#2646265

I would like to display featured WooCommerce products first when the search page displays at hidden link.

Since sort order does not work with taxonomies like the product_visibility tax that featured posts use, we created a separate custom field called wpcf-pin-to-top and set the value of products that should be pinned to the top of the search to 1. Our problem is that this custom field does not appear in the search order options. I have assigned the custom field to both the post type (products) and the toolset view we are using (harrisonburg-inventory-filter)

See video for additional information
hidden link

#2646459

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

As I understand you want to set the order by your view result using your custom field "wpcf-pin-to-top ". If that is correct - Can you please share admin access details and let me check why the custom field is not available with the ordering section.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

The topic ‘[Closed] Adding custom field to search order within a view’ is closed to new replies.