Skip Navigation

[Resolved] Resume with flag set shows on top in Search Result

This support ticket is created 6 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

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 6 replies, has 2 voices.

Last updated by Minesh 6 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#615094
2018-02-12_10-56_Edit Job Seeker ‹ Power Gen.jpg

Hi ,

I have set one thing that is "Featured Resume" custom field using checkbox in our custom post type using toolset. Now i want iIf a Resume with a flag set occurs in the search results(means checkbox is checked in post),then it will automatically rise post to the top of the search listings.

If many posts with flags( means checkbox is checked ) are returned, the one with the latest date will be on top and ordered by latest date at the top.

Please let me know how can i do this ?

Thanks

#615098

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Could you please share problem URL and one test case example with search key word and tell me what should be your expected results based on that test key word.

*** 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 would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

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

#615166

Minesh
Supporter

Languages: English (English )

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

Well - wp-admin access details you shared is not working.

what if you try to add custom field filter from your view's query filter section for your custom field "featured Resum" equal to 1 and then from within order by section of view add order by custom filed "featured Resume" - does that work?

#615206

Hi ,

If i will try like this then on search it only shows the results in which "featured Resume" set to 1 and it's not showing anything else.

But i just want to show both in which featured one comes on top and other normal in last DSC by date.

Thanks

#615219

Minesh
Supporter

Languages: English (English )

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

ahh Ok. Still - wp-admin access details are not working at this end so I could not get into it.

Could you please send me working wp-admin access details.

if you want to include both results then its matter of order by, you should order by your custom field "featured Resum" and then secondary order should be set as post date desc.

Does that work?

#615222

Hi

Please try with below details,

access details

Let me know if any query.

Thanks

#615229

Minesh
Supporter

Languages: English (English )

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

Well - I checked on your install and I see the "Featured resume" is set to save 0 by default.

This may cause the issue what if you try to set the option "don't save anything to the database" so when the checkbox is checked you will have only one value 1 when checkbox is checked so it might be easy to set order by your feature resume field.

Makes sense?