2

I'm unable to get any relationship information to display within my Playa field. I'm using ExpressionEngine 2.5.2 with Playa 4.0.5 installed and my license key input. I have an information selected within my channel entry in the Playa field.

My playa field is titled "testplaya2" and here is the code that I'm using to display the playa information:

 {exp:channel:entries  channel="tours" limit="1" url_title="{segment_2}" status="open|hidden" show_future_entries="yes" show_expired="yes"}
 <div class="section">
    {testplaya2}
        {title}
    {/testplaya2}
 </div>
 {/exp:channel:entries}

Am I missing something?

4
  • Please post a more complete code sample... what's surrounding this code? Is it inside a channel:entries tag?
    – Anna_MediaGirl
    Oct 23, 2013 at 4:23
  • 1
    Hi @Anna_MediaGirl, I just added more complete code. Yes, it is in a channel entries tag - details above. Oct 23, 2013 at 15:58
  • Is {title} printing out the title of the main entry instead of the Playa entries?
    – Anna_MediaGirl
    Oct 23, 2013 at 16:02
  • 1
    {title} was actually showing nothing at all, but it was because the entry had expired. @diemer's answer below was the fix. thanks for the help Oct 23, 2013 at 16:04

1 Answer 1

1

Is the entry that you've selected in the Playa field expired? Playa defaults to no for show_future_entries and show_expired.

1
  • hi @diemer, that was it! I just added statements to my playa field to fix it: {testplaya2 show_future_entries="yes" show_expired="yes"}{title}{/testplaya2} Oct 23, 2013 at 16:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.