Display custom information in my search results
-
Hi, this is my first post and I’m brand new to WordPress so I apologies in advance if this is a basic question.
I have WordPress installed on my local network so I search via a WordPress search page and not on the internet, but how can I get the results of my search to display the information I want, please?
For example, I’m making a recipe book/card local site with the Free “WP Recipe Maker” so I can use it as my personal recipe book with different recipes I enjoy to eat. I try to search using the Free Relevanssi which seems to find the pages I require (Title, Picture and some text) but I would it to display specific text that I enter in to “WP Recipe Maker”. This is what I get:
———————————————-
Title (Clickable through to article)Picture
%Random snippet of text with highlighted words in%
———————————————-But if possible I would like the search to display results like:
———————————————-
Title (Clickable through to article)Picture (Clickable through to article)
Calories: %meta_value%
Time: %meta_value%
Servings: %meta_value%
Cost: %meta_value%
———————————————-I’ve tried using “Use custom fields for excerpts” and even looked at “Breakdown of search hits in excerpts”, but it’s not the number of hits I would like, it’s the values I would like back of certain fields, and I have no idea where to configure displaying the custom fields that “WP Recipe Maker” would have made.
Is this possible with my current setup? If so how would I achieve this? Please bear with me and my lack of experience with this.
Kind regards
Adam
- The topic ‘Display custom information in my search results’ is closed to new replies.