We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Issue with results using channel entries search parameter in EE 2

Development and Programming

rjionline's avatar
rjionline
37 posts
9 years ago
rjionline's avatar rjionline

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

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.