Skip Navigation

[Resolved] Search by related column in admin area

This support ticket is created 2 years, 10 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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

Last updated by simchaH 2 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#2233689
Screenshot (25).png

Hi!

With the help of this thread, I have added a column to one of my CPT's, displaying information from a field of a relationship CPT:
https://toolset.com/forums/topic/display-admin-column-from-related-parent-post-title/

I am wondering if there is a way to also include this related column into the search bar at the top right corner in the admin area? (see image)

#2233753

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

There is no such feature available at the moment to search within the custom admin column you setup. This will require addition custom code that you will require to add that is beyond the scope of our support policy.

However - here is the link that might help you or you can search for other articles:
=> https://wordpress.stackexchange.com/questions/11758/extending-the-search-context-in-the-admin-list-post-screen

#2234489

Hi Minesh,

Thanks so much for sharing that link it sent me on the right path. I just noticed that for me that won't work because that is for custom post fields in the same Post Type, but for me it needs to search for the related custom post field. I digged a little further and found this:

https://wordpress.stackexchange.com/questions/185734/admin-search-acf-relationship
which brought me to this gist:
hidden link

This seems to be exactly what I am looking for, I am only wondering if you'd be able to take a quick glance and see if it will work for us because it was originally made for acf plugin, and I am not sure if using it with toolset will be an issue?

Thanks!

#2235025

Minesh
Supporter

Languages: English (English )

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

That is even more complex as Toolset stores post relationship different way.

There is no such feature available to search related post field within the post type screen. Please check the following related ticket about how you can display the parent post type title:
=> https://toolset.com/forums/topic/add-post-relationship-column-to-custom-post-list-in-admin-menu/#post-921565

But there is no way native way to search within the related post type. It will require custom code that is beyond the scope of our support policy.

#2238365

My issue is resolved now. Thank you!

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.