'Relevanssi relationship
Hi I have a post called Item with a many to many relationship with a post called Authority. I would like to include a search field where if any word in the custom fields is searched, the Item post will be displayed. I have done the following:
Included authority and item-authority (relationship) in the post types and saved. Created the index.
Changed custom fields to some and included all custom fields from Item and all custom fields from Authority:
wpcf-amount-of-digitised-material, wpcf-archdiocese-digitisation-project-no, wpcf-begin-year, wpcf-box-no, wpcf-country, wpcf-creator, wpcf-end-year, wpcf-extent-of-record, wpcf-features, wpcf-hmml-project-no, wpcf-inventory-no, wpcf-inventory-title, wpcf-notes, wpcf-related-material, wpcf-scope-and-content, wpcf-shelf-location, wpcf-supplied-title, wpcf-authority-name, wpcf-biography-information, wpcf-events-highlights, wpcf-range, wpcf-related-corporate-body, wpcf-related-geographic-places, wpcf-related-person, wpcf-variants, wpcf-reference
All these fields have Include in search tickbox selected.
I included a search box In the Archive of Item where it has to gather data from Title, body and custom fields. It is currently working for Item search fields but not for the related Authority records.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
