Skip Navigation

[Resolved] Search does not include custum fields

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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Nigel 6 years, 9 months ago.

Assisted by: Nigel.

Author
Posts
#615852

I am trying to: include some custom fields in search results

Link to a page where the issue can be seen: Any page (Search using the magnifier)

I expected to see: author name to have results

Instead, I got: no results

The suggested search plugin is actived and set up but the settings for toolset is now empty.

#616010

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screen Shot 2018-02-14 at 13.22.27.png

Hi there

Your Relevanssi settings are indexing the post author name, but I suspect you mean the taxonomy imho_author, is that what you want included in the search.

You are not indexing that taxonomy, and hence it is not included in the search.

#616134

Thank you for your reply.

imho_author has been added to the index and re-indexed. Still no luck.

#616148

Also, hidden link is blank

#616248

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screen Shot 2018-02-15 at 08.15.26.png

I can confirm on the front-end that searching for the author doesn't work.

I went to the Relevanssi settings to confirm them and re-built the index.

I noticed the warning shown in the screenshot. Relevanssi itself is warning that it might not work correctly because your server is missing the common mbstring PHP module.

I suggest you contact your host and have it activated, it is a common module that is also required for Toolset.

I suspect that you will find PHP notices in your debug logs because of this.

I couldn't see why the Toolset settings page was blank. I temporarily de-activated the plugins you use to customise the admin pages but that didn't help.

I suggest you first look in debug.log to see if there are any related messages.

If you haven't already, turn on the debug log by editing your wp-config.php file and change the line with WP_DEBUG like so:

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);

That will create a debug.log file in your wp-content directory which you can examine in any text editor. Try visiting Toolset > Settings and then inspect the log.