Skip Navigation

[Resolved] Creating a child post and attaching it to parent

This support ticket is created 4 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 23 replies, has 2 voices.

Last updated by marcH-4 4 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#1615827

Yes, bang on, thanks for your continued patience

#1615885

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Marc,

I've adjusted the relationship filter for the view so it should now be displaying to related task for the timesheet.

Please let me know if everything is ok now.

Thanks,
Shane

#1616195

Thanks, I have the task displaying as expected:
hidden link

Is it possible to put this template on this page:
hidden link

And another query:
I have followed the instructions on this page: https://toolset.com/forums/topic/calculator/ but when I add the code: [wpv-calculate] [types field="mon"]+[types field="tue"][/wpv-calculate], it breaks the page.

#1616995

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Marc,

Are you saying you want to put the table on this page here ?
hidden link

This is an edit template could you let me know which template you have in the edit form on ?

Secondly below
I have followed the instructions on this page: https://toolset.com/forums/topic/calculator/ but when I add the code: [wpv-calculate] [types field="mon"]+[types field="tue"][/wpv-calculate], it breaks the page.

Unfortunately i'm unable to assist with this as this would be custom code which falls outside of the scope of our support forum. This was a custom code created by one of our past supporters so it is not something that we can support.

Thanks,
Shane

#1617047

It’s a page called edit-my-timesheet and it has a TS form on it called add-a-task

#1617133

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2020-05-08 at 10.02.33 AM.png

Hi Marc,

Thank you .

Ok so in this case it is still possible to display the tasks given that the parent ID is being passed in the URL as "parent_timesheet_id"

What you will need to do is to create an exact copy of your "Timesheet editor" view adding back the Query filter for the Post relationship. However instead of setting the relationship to get the parent from "The post where this View is shown " you will set it to "The post with ID set by the URL parameter" See Screenshot

You will need to change "wpv-relationship-filter" to "parent_timesheet_id"

Then add this view to your edit template. Once you've done this then your view will start displaying the tasks information for that parent.

Please let me know if this helps.

Thanks,
Shane

#1617809

This all works beautifully, thanks.

How do I get the timesheet name (20-05-04) in the body or the title on this page: hidden link

#1619983

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Marc,

You will need to use this shortcode.
[wpv-post-title item="[wpv-search-term param='parent_timesheet_id']"]

Try adding this to your page and let me know if the title starts to show up.

Thanks,
Shane

#1623701

My issue is resolved now. Thank you!