Kate
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 |
---|---|---|---|---|---|
Conditional Display of a Filter Fields
Started by: Kate
in: Toolset Professional Support
Problem: Solution: ( function( $ ) { $( document ).ready( function(){ $('.state-filter').hide(); $('#wpv_control_select_wpcf-country').change( function(){ if ( $(this).val() == 1 ){ $('.state-filter').show(); } else { $('.state-filter').hide(); } }); }); })( jQuery ); The field names need editing, and the wrapper div for the form control which should be hidden in this example requires the class "state-filter" adding. |
2 | 3 | 6 years, 1 month ago | ||
Map popup after list button clicked. Custom Pin and Map type
Started by: Kate
in: Toolset Professional Support
Problem: I would like to show the Marker popup in the Map when a link in the results is clicked. I would like to show a full-width and full-height Map. Solution: You can insert a "Focus on Marker" link using the Fields and Views button. In the popup you will have options for styling the link, and you can also choose interactive options that will open the marker panel when you click the link. The amount of customization built into the Map shortcode is a bit limited, but you can apply 100% CSS height in the options popup when you insert the Map shortcode, resulting in something like this: [wpv-map-render map_id="map-3" map_height="100%"][/wpv-map-render] You can add any necessary custom markup around the Map shortcode and the list of results, and you can add your own custom CSS in the Loop Output CSS editor panel. The CSS necessary to create this type of display varies from theme to theme. Relevant Documentation: |
2 | 3 | 6 years, 7 months ago | ||
Apply Active class to URL when the Current page is that URL
Started by: Kate
in: Toolset Professional Support
Problem: use conditional logic to output class="active" to the li tag of the following: Solution: You will need to compare with the static URL and custom field value, for example, the static URL in your codes: See the solution here: Relevant Documentation: |
2 | 3 | 6 years, 8 months ago | ||
Show content based on whether there is a post before or after the current post
Started by: Kate
in: Toolset Professional Support
Problem: I would like to show some content based on whether or not there is an adjacent post to the current post. Solution: Here is the custom shortcode for reference: function ts_get_adjacent_post_url_func($atts) { global $post; $previous = ($atts['previous'] == "1"); $adjacent = get_adjacent_post( false, '', $previous); return get_the_permalink($adjacent); } add_shortcode("ts_get_adjacent_post_url", "ts_get_adjacent_post_url_func"); If no adjacent post exists, the URL for returned by the custom shortcode will be equal to the URL of the current page. Here's how you can use conditional HTML to test the current page's URL against the previous page URL: [wpv-conditional if="( '[ts_get_adjacent_post_url previous='1']' ne '[wpv-post-url id='$current_page']' )"]Only show if there is a previous post in list[/wpv-conditional] [wpv-conditional if="( '[ts_get_adjacent_post_url previous='1']' eq '[wpv-post-url id='$current_page']' )"]Only show if there is not a previous post in list[/wpv-conditional] Relevant Documentation: |
2 | 3 | 6 years, 8 months ago | ||
Hiding Previous and Next buttons for First and Last Post Archive
Started by: Kate in: Toolset Professional Support |
2 | 4 | 6 years, 9 months ago | ||
WordPress and Toolset Increase PHP Requirement to PHP 7+ » and « Toolset 1.6.6 – Compatibility with WordPress 6.2 and Other Fixes as raw html link">Display WordPress and Toolset Increase PHP Requirement to PHP 7+ » and « Toolset 1.6.6 – Compatibility with WordPress 6.2 and Other Fixes as raw html link
Started by: Kate
in: Toolset Professional Support
Problem: I would like to design custom next and previous links, but the wpv-post-next-link and wpv-post-previous-link shortcodes produce full link tags. I need to access only the URLs. Solution: Please add this code to your theme's functions.php file: function ts_get_adjacent_post_url_func($atts) { global $post; $previous = ($atts['previous'] == "1"); $adjacent = get_adjacent_post( false, '', $previous); return get_the_permalink($adjacent); } add_shortcode("ts_get_adjacent_post_url", "ts_get_adjacent_post_url_func"); Then you can access the next and previous post URLs in a Content Template like this: Next URL: [ts_get_adjacent_post_url previous="0"]<br /> Previous URL: [ts_get_adjacent_post_url previous="1"]<br /> |
2 | 7 | 6 years, 9 months ago |