Skip Navigation

[Resolved] Calling all child post in one view and post-title is not viewing for all child

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 6 years ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by Shane 6 years ago.

Assigned support staff: Shane.

Author
Posts
#433445
output-should-look-like-this.png
parent-id-work.png
child-post-type.png

I am trying to: call all the child post in one view but when I'm trying to create the wpv-post-link for all child post

but the problem is when I have to assign the Parent ID I can't get that done.. I'm sharing the screenshot for reference.

#433667

Shane
Supporter

Languages: English (English )

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

Hi Laura,

The issue is that you cannot do this.

[wpv-post-link id="$parent1, $parent2"]

The id attribute will only accept 1 parent post type, you are not able to add several parent post type to it.

Thanks,
Shane

#433849

Hi shane, I know what you mean is there any way that I can call them separately such as
[wpv-conditional if="( $('$parent1') ne '' )"]
[wpv-post-link id="$parent1"]
[/wpv-conditional]

[wpv-conditional if="( $('$parent2') ne '' )"]
[wpv-post-link id="$parent2"]
[/wpv-conditional]

[wpv-conditional if="( $('$parent3') ne '' )"]
[wpv-post-link id="$parent3"]
[/wpv-conditional]

and put such kind of condition that it will only show title if it's parentId is not empty.

Again thanks for your response

Is there a way that I can change my ticket type to Toolset Professional Support

#434134

Shane
Supporter

Languages: English (English )

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

Hi Laura,

Yes using the conditionals to check would be best way to move forward with this setup.

Thanks,
Shane

#434165

Hi But if you check the image named as child-post-type.png will the condition work will still be do-able.
[wpv-conditional if="( $('$parent1') ne '' )"]
[wpv-post-link id="$parent1"]
[/wpv-conditional]

this will still be showing other post type title... instead only showing $parent1

for reference it's shown in output-should-look-like-this.png

I wanted to use condition so I can use child-post-type.png this and show only $parent relation Postype title

Thanks

#434228

Shane
Supporter

Languages: English (English )

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

Hi Laura,

It should actually be like this.

[wpv-conditional if="([wpv-post-link id="$parent1"] ne '')"]

Please let me know if this helps.
Thanks,
Shane

The forum ‘Types Community Support’ is closed to new topics and replies.