fastrezS
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Viewing 2 topics - 1 through 2 (of 2 total)
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
How to add more options to custom field WISIWYG object ?
Started by: fastrezS in: Toolset Professional Support |
2 | 4 | 5 years, 6 months ago | ||
How to display repeating field groups with PHP
Started by: fastrezS
in: Toolset Professional Support
Problem: I would like to display repeating field groups (RFGs) using only PHP. Solution: Use the Post Relationships API or the toolset_relationships query argument to retrieve RFGs from the database and loop over them. $args = array( 'post_type' => 'book-rfg', 'numberposts' => -1, 'toolset_relationships' => array( 'role' => 'child', 'related_to' => 12345, 'relationship' => 'book-rfg' ), ); $the_query = new WP_Query( $args ); while ( $the_query->have_posts() ){ $the_query->the_post(); the_title(); echo '<br />'; } Relevant Documentation:
|
2 | 4 | 6 years, 5 months ago |
Viewing 2 topics - 1 through 2 (of 2 total)