chantalM
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 |
---|---|---|---|---|---|
Help with writing a conditional to hide a section of text
Started by: chantalM
in: Toolset Professional Support
Problem: Solution: It should be noted that Toolset date fields are stored as timestamps so this will be an exact comparison depending on the precision of the date field. What I mean is that if you set the field to datetime then the dates and the times of both fields must match exactly. Once you can confirm this then you will be able to compare them below using the timestamp. [wpv-conditional if="( $(date-aa) eq $(date-bb) )"] <!-- content to conditionally show goes here --> [/wpv-conditional] Should it be a case where the fields have the same date but different times then you can use the format below. [php][wpv-conditional if="( '[types field='date-aa' format='Y m j'][/types]' eq '[types field='date-bb' format='Y m j'][/types]' )"] [/wpv-conditional] [php] This will do a comparison based on the human readable date only. |
2 | 3 | 2 years, 3 months ago | ||
Is there a way to delete multiple entries at once?
Started by: chantalM in: Toolset Professional Support |
2 | 2 | 2 years, 4 months ago | ||
Can’t get dynamic aspect to work in shortcode
Started by: chantalM
in: Toolset Professional Support
Problem: Solution: Can you please try to follow the following steps: You can find proposed solution, in this case with the following reply: Relevant Documentation: |
2 | 3 | 2 years, 4 months ago | ||
Responsive Column Grid in View
Started by: chantalM
in: Toolset Professional Support
Problem: I enabled Bootstrap grid and managed to create a 3 column grid. How do I make it 2 column on tablet? Solution: You can follow Bootstrap to setup the grid CSS class names, for example: https://toolset.com/forums/topic/responsive-column-grid-in-view/#post-2229653 Relevant Documentation: |
2 | 11 | 2 years, 4 months ago | ||
How to display content based on intermediary post type custom field
Started by: chantalM
in: Toolset Professional Support
Problem: Solution: [types field='your-field' output='raw' item='@post-venue.intermediary'][/types] To use the intermediary post type custom field with [wpv-conditional] shortcode, You can find proposed solution, in this case with the following reply: Relevant Documentation: |
2 | 7 | 2 years, 5 months ago | ||
Ordering a Select List in Alphabetical Order on the Post Type/Edit Screen
Started by: chantalM
in: Toolset Professional Support
Problem: The customer asked how the 'wpt_field_options' filter can be used to dynamically generate a long and alphabetically ordered list of options for a select type field. Solution: Shared some details and a code snippet example to show how this filter can be used to generate options from a custom post type: add_filter( 'wpt_field_options', 'func_to_dynamically_populate_shop_locations', 10, 3); function func_to_dynamically_populate_shop_locations( $options, $title, $type ){ switch( $title ){ case 'Book Shop Locations': $options = array(); // add first empty value $options[] = array('#value' => '', '#title' => '---'); // get all tmna-location post items $args = array( 'post_type' => 'shop-location', 'posts_per_page' => -1, 'post_status' => 'publish','orderby' => 'title' ); $results = get_posts( $args ); if ( $results ) { foreach ( $results as $post ) { $options[] = array('#value' => $post->ID, '#title' => $post->post_title); } } break; } return $options; } Relevant Documentation: https://toolset.com/documentation/programmer-reference/types-api-filters/#wpt_field_options |
2 | 7 | 2 years, 5 months ago | ||
Display all intermediary data on site in one View
1
2
Started by: chantalM in: Toolset Professional Support |
3 | 20 | 2 years, 6 months ago | ||
Display Categories Within A View That Uses Intermediary Posts
1
2
Started by: chantalM in: Toolset Professional Support |
2 | 22 | 2 years, 6 months ago | ||
Hide a View using old-fashioned Views (not conditional blocks)
Started by: chantalM in: Toolset Professional Support |
2 | 5 | 2 years, 7 months ago | ||
Display intermediary post data from a specific post
Started by: chantalM in: Toolset Professional Support |
2 | 18 | 3 years ago | ||
Toolset Blocks – When activated, plugin does not display post content
Started by: chantalM
in: Toolset Professional Support
Problem: Solution: Logging in and checking this user's site it turns out that they actually have an empty content template assigned to their posts. Deleting this empty template resolved the issue. |
2 | 3 | 3 years, 3 months ago | ||
Edit Field Group page is hanging
Started by: chantalM in: Toolset Professional Support |
2 | 8 | 5 years, 1 month ago | ||
How to hide a view from display
Started by: chantalM
in: Toolset Professional Support
Problem: I would like to display a View only on non-mobile browsers. I tried using conditionals with wp_is_mobile in GP Hooks to display the View above the main content, but the View shortcode is just written out to the page. The View shortcode works without the Toolset conditionals. Solution: Toolset's conditionals don't seem to function well in GP Hooks. Instead, you can use PHP conditionals directly. <?php if ( !wp_is_mobile() ) : ?> [wpv-view name="sitewide-advert"] <?php endif; ?> Relevant Documentation: |
2 | 12 | 5 years, 2 months ago | ||
Table-Based Grid Displaying Images In Different Sizes If Text Underneath – Why?
Started by: chantalM in: Toolset Professional Support |
2 | 2 | 7 years, 5 months ago | ||
Child Post No Longer Reading Info Correctly From Parent Post
Started by: chantalM in: Toolset Professional Support |
2 | 9 | 7 years, 6 months ago |