Skip Navigation

[Résolu] 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 Il y a 7 années et 7 mois. 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.

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)

Marqué : 

This topic contains 5 réponses, has 2 voix.

Last updated by Shane Il y a 7 années et 7 mois.

Assisted by: Shane.

Auteur
Publications
#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: Anglais (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: Anglais (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: Anglais (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

Le forum ‘Types Community Support’ est fermé à de nouveaux sujets et réponses.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.