Skip Navigation

[Resolved] Content Template search in dashboard maybe not working correctly

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user is using the search on the backend on the content templates page to find their templates based on the title, however more than just the exact title matches were showing up.

Solution:

The search actually doesn't only match based on the title of the content template but also texts that are within the template.

So if your search text matches the content within the template then it will match as well.

You can check this to see if this is the case for you or if your keyword isn't present in the results at all.

This support ticket is created 5 years, 7 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by Ben 5 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#1225803

Ben

I presume that the search function in Toolset > Content Templates is supposed to function like the one in Toolset > Views?

However when I search for something in Content Templates, lots of results that don't match are returned each time.

Either there is something wrong, or Content Templates search the content of the file as well, rather than just the title like Views does.

I hope that makes sense!

#1225954

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ben,

Thank you for contacting our support forum.

I tried the search and it works fine on my end here. However i think i know the issue.

The search actually doesn't only match based on the title of the content template but also texts that are within the template.

So if your search text matches the content within the template then it will match as well.

You can check this to see if this is the case for you or if your keyword isn't present in the results at all.

Thanks,
Shane

#1226044

Ben

As suspected! Thank you for confirming Shane.

Why is it set to do this as opposed to just searching the titles like a search of Views does?

#1226053

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ben,

Actually the searching is controlled by wordpress API, so we don't specify what exactly to search for. This search here functions the exact same as the posts search on the backend.

Happy I was able to clarify for you. If there are no further questions on this you can mark this one as resolved

Thanks,
Shane

#1226054

Ben

Thank you for helping me with this Shane.

Closing this thread now.