Martin Duys
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
I need to only display parent posts that actually have children
1
2
Started by: Martin Duys
in: Types Community Support
Problem: Solution: function child_exists_func( $atts ){ extract( shortcode_atts( array( 'child_post_type_slug' => '', ), $atts ) ); $child_posts = types_child_posts($child_post_type_slug); if ($child_posts) { return true; } } add_shortcode( 'child-exists', 'child_exists_func' ); 2. Register the ‘child-exists’ shortcode first in Toolset >> Settings >> Front-end Content >> Third-party shortcode arguments. 3. Then add this shortcode in your View >> Loop Output Editor: [wpv-conditional if="( '[child-exists child_post_type_slug=belong]' eq '1' )"] [wpv-post-link] [/wpv-conditional] ==> Where as “belong” is your child post type slug that you should replace. |
3 | 17 | 7 years, 3 months ago | ||
Woocommerce product categoreis are not displaying
Started by: Martin Duys in: Toolset Professional Support |
2 | 9 | 7 years, 4 months ago |