hellobarrio
Admite hilos creados en los últimos 30 días: 0
Debates favoritos del foro
Este usuario no tiene debates favoritos.
Temas del foro creados
Status | Debate | Supporter | Voces | Mensajes | Caducidad |
---|---|---|---|---|---|
Relationships don't work
Iniciado por: hellobarrio en: Toolset Professional Support |
3 | 7 | hace 1 año, 8 meses | ||
Display repeating field group with php
Iniciado por: hellobarrio
en: Toolset Professional Support
Problem: I would like to know how to loop over repeating field groups with PHP. Solution: $parent = get_post( 12345 ); // the parent post that holds the RFG $sezioni = toolset_get_related_posts( $parent, // the parent post 'sezioni', // the RFG slug 'parent', // the post role in this relationship is 'parent' 1000000, // the maximum number of results 0, // the offset array(), // additional query arguments 'post_id', // return format 'child', // role to return ); // $sezioni is now an array of post IDs for each RFG $sez1 = get_post( $sezioni[0] ); // example, get the first Sezioni RFG ID $pulsanti = toolset_get_related_posts( $sez1, // the parent RFG 'pulsanti', // the RFG slug 'parent', // the sezioni role in this relationship is 'parent' 1000000, // the maximum number of results 0, // the offset array(), // additional query arguments 'post_id', // return format 'child', // role to return ); // $pulsanti is now an array of post IDs for each RFG in $sez1 Relevant Documentation: |
2 | 4 | hace 6 años, 6 meses | ||
toolset types 3 is ready?
Iniciado por: hellobarrio
en: Toolset Professional Support
Problem: Solution: Types 3.0 has been released and should be available for download. |
2 | 2 | hace 6 años, 7 meses |