Skip Navigation

[Resolved] I Can't Display the Title of a Parent Post on a View that Lists it's Children

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 6 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#922678
ScreenClip2.png
ScreenClip.png

I am trying to: Show the Title of a Parent Post on a view that lists its associated children.

Link to a page where the issue can be seen: hidden link

I set up this page so that when you click on "View" it pops up a window showing all the volunteers of a given volunteer project. The view works well and shows all the volunteers. I then created a button to print that list for admins of the project. However, I need the title of Project to be shown in that view as well so that when I hit print it shows what project these volunteers are associated with.

Volunteers are a child-post of the projects custom post type. I selected "Post Title" then went to "Post selection" then selected "The parent of the current post in another post type, set by a Types relationship" - then I select "Project" as the post type. I get this shortcode: [wpv-post-title id="$projects"].

However, when seeing the view on the front end this shortcode doesn't return anything.

Here's my View for reference:
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<h4>[wpv-post-title id="$projects"] | Volunteers</h4>
<ul id="volunteer-list">
<wpv-loop>

  • [wpv-post-title] - [types field="contact-person-email"][/types] | <span style="color:black; ">Shirt Size</span>: [types field='shirt-size'][/types]
  • </wpv-loop>
    <div style="padding-top:15px;">
    <button class="my-button white-sec-btn no-print" onclick="window.print();">Print</button>
    </div>

    <!-- wpv-loop-end -->
    [/wpv-items-found]
    [wpv-no-items-found]
    [wpml-string context="wpv-views"]<h4>This project has no volunteers</h4>[/wpml-string]
    [/wpv-no-items-found]
    [wpv-layout-end]

    #922890

    Minesh
    Supporter

    Languages: English (English )

    Timezone: Asia/Kolkata (GMT+05:30)

    Hello. Thank you for contacting the Toolset support.

    First of all - After checking debug information you shared with us, I found that you are using outdated Toolset plugins. We always recommend to run your site with latest stable release plugin version.

    *** Please make a FULL BACKUP of your database and website.***
    Could you please update ALL Toolset plugins to it's latest official released version. You can download latest plugin release from your accounts page:
    => https://toolset.com/account/downloads/

    Also,
    - I would like to know here have you migrated to new relationship from Toolset => Relationships?
    - I see the problem URL but I think I need access details to see the view content. Could you please share access details?

    I have set the next reply to private which means only you and I have access to it.