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 ?
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.
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
Hi Alessandro,
Can you add the code you are using for your Place Content Template and your Event Content Template here.
Best regards,
Bruce