Skip Navigation

[Closed] Parent Filed

This support ticket is created 11 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.

This topic contains 3 replies, has 2 voices.

Last updated by bruce 11 years, 6 months ago.

Assigned support staff: bruce.

Author
Posts
#6932

Hi i got an event web site: <a href="hidden link" title="discoteche roma">

I divided the site by:

Place
- Event 1
- Event 2
- ...
- Event N

Naturally some fields are the same, the address of the events are the same about the place so:
In the event template I'd like to catch the custom fields about the parent (place) like name, address, images... and put them in some position without creating a view for each custom field i need.

Something like this:

PLACE TEMPLATE

TITLE
Address CF
Image CF
Telephone Number CF

---------------

EVENT TEMPLATE
parentplace.Image CF

Start Date CF
End Date CF

parentplace.address CF
parentplace.Telephone Number CF

How can i query this values from my child Custom Type ?

#6942

Hi Alessandro,

This is supported in the 0.9.5 beta release of Views and Types.

You can use something like:

[types field="address" id="$parent"] to display the address field from the parent post.

Best regards,
Bruce.

#6958

I used that formula but when i go to view the event it automatically change my Post Type to the Parent one. I can't understand why
hidden link

#6979

Hi Alessandro,

Can you add the code you are using for your Place Content Template and your Event Content Template here.

Best regards,
Bruce

The topic ‘[Closed] Parent Filed’ is closed to new replies.