eddieW-2
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Searching keywords from repeating field group is not working
1
2
Started by: eddieW-2
in: Toolset Professional Support
Problem: I would like to be able to use text search to find posts using information stored in repeatable field groups. However, when I add RFGs to the index I see links in the search results that point to an invalid post. I would like to link to the post containing the RFG. Solution: Add the repeatable field group to the search index, then use a WordPress Archive to display the search results. Use conditional HTML in the archive to determine if the link is for a RFG post type, and display a link to the parent post instead. Something like this: [wpv-conditional if="( '[wpv-post-type]' eq 'custom-page-section' )"] [wpv-post-link item="@custom-page-section.parent"] [/wpv-conditional] [wpv-conditional if="( '[wpv-post-type]' eq 'custom-post-section' )"] [wpv-post-link item="@custom-post-section.parent"] [/wpv-conditional] [wpv-conditional if="( '[wpv-post-type]' ne 'custom-page-section' ) AND ( '[wpv-post-type]' ne 'custom-post-section' )"] [wpv-post-link] [/wpv-conditional] Relevant Documentation: |
3 | 30 | 5 years, 11 months ago | ||
Display repeating fields group using PHP
Started by: eddieW-2
in: Toolset Professional Support
Problem: Solution: Relevant Documentation: |
2 | 5 | 6 years, 3 months ago |