I’m having an issue on my site that uses the channel entries search parameter. The site uses EE2.
Here’s an example of the issue we’re having, which you can view at:
https://www.rjionline.org/account/profile/594
You’ll notice that on the About tab, there are several stories listed as being about René. The problem is that René’s name doesn’t appear anywhere in the body of the stories listed here. There are a number of examples we’ve found of this issue cropping up on other member pages.
The template code appears to be correct, except that it isn’t set up to use exact matching. I tried to use that, but when I did, none of the member pages displayed any about stories at all.
Following is the relevant template code.
{exp:channel:entries channel="stories|research|events" dynamic="no" search:news_body="{embed:first_name}&&{embed:last_name}" disable="categories|member_data" limit="10"}
{if no_results}There are no articles written about {if segment_3 == ""}you!{if:else}this user.{/if}{/if}
{if count == 1}
<hr>
<h4>Stories about {embed:first_name} {embed:last_name}</h4>
<div class="card-bg">
<ul class="media-list">
{/if}
<li class="card">
<div class="media-body">
<h5>{if post_series != ""}<span class="small capitalize">{post_series}</span>
{/if}<a href="http://{post_path}class=media-heading">{title}</a>
{!-- If statement below checks if there is a start time (it is an event) and gives the event start/finish but if not (it is a post) and displays author and publish date --}
<span class="capitalize small">
{entry_date format="%F %j, %Y"}
</span></h5>
</div> {!-- ends .media-body --}
</li>
{if count == total_results}
</ul>
</div>
{/if}
{/exp:channel:entries}
Thanks in advance for any suggestions anyone might have to help me fix this.
Lamar
ExpressionEngine version: 2.10.1 PHP version: 5.4.13
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.