chantalM
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Help with writing a conditional to hide a section of text
Commencé par : 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 | Il y a 3 années et 6 mois | |
Is there a way to delete multiple entries at once?
Commencé par : chantalM in: Toolset Professional Support |
|
2 | 2 | Il y a 3 années et 7 mois | |
Can’t get dynamic aspect to work in shortcode
Commencé par : 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 | Il y a 3 années et 7 mois | |
Responsive Column Grid in View
Commencé par : 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 | Il y a 3 années et 7 mois | |
How to display content based on intermediary post type custom field
Commencé par : 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 | Il y a 3 années et 8 mois | |
Ordering a Select List in Alphabetical Order on the Post Type/Edit Screen
Commencé par : 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 | Il y a 3 années et 8 mois | |
Display all intermediary data on site in one View
1
2
Commencé par : chantalM in: Toolset Professional Support |
|
3 | 20 | Il y a 3 années et 9 mois | |
Display Categories Within A View That Uses Intermediary Posts
1
2
Commencé par : chantalM in: Toolset Professional Support |
|
2 | 22 | Il y a 3 années et 10 mois | |
Hide a View using old-fashioned Views (not conditional blocks)
Commencé par : chantalM in: Toolset Professional Support |
|
2 | 5 | Il y a 3 années et 10 mois | |
Display intermediary post data from a specific post
1
2
Commencé par : chantalM in: Toolset Professional Support |
|
2 | 18 | Il y a 4 années et 3 mois | |
Toolset Blocks – When activated, plugin does not display post content
Commencé par : 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 | Il y a 4 années et 6 mois |