Hi again,
It seems the question mark issue has resolved itself but I have another issue. I created a custom field called "Review Issue" for the Review post type. For some reason that custom field is also showing up in the search results in other post types.
Hi,
If I understand correctly, you'd like to show the 'Review Issue' field in the 'Search Test' page's results, only if the post type is 'Reviews'.
To achieve this, you can add a 'Conditional' block that checks for the current post's type and only shows the inner content if it is equal to 'review', the slug of post type 'Reviews'.
( example screenshot attached )
Next, you can drag the 'Fields and Text' block that shows this field, inside the newly added conditional block, so that it only shows when the condition is true.
Here is a guide on using the conditional block:
https://toolset.com/lesson-placement/lesson-placements-1621067-1292451/
I hope this helps and please let me know if you need further assistance.
regards,
Waqar
Hi Waqar,
What do I put in the Fields and Text block? I tried putting in a shortcode for the custom field but that didn't work.
This is what I entered: [types field='review-issue'][/types]
John
I've checked the search results page and the conditional block is correctly working to show the review issue, only for the 'Reviews' posts.
( screenshot: hidden link )
Looks like you've managed to make it work, after writing to us.
Let me know if you have any follow-up questions and for a new question or concern, you're welcome to start a new ticket.
Hi Waqar,
I guess it was a caching issue on my end because I couldn't see it was fixed. Thanks!