Matthias Reichl
In den letzten 30 Tagen erstellte Support-Threads: 0
Lieblings-Forenthemen
This user has no favorite topics.
Forum Topics Created
Status | Thema | Supporter | Stimmen | Artikel | Aktualität |
---|---|---|---|---|---|
Exclude duplicate entries in a view
Gestartet von: Matthias Reichl
in: Toolset Professional Support
Problem: I have a View that shows a list of posts in a custom post type. Some of my posts have the same title. I would like to remove the duplicate titles from the View. How can I filter by unique post title? Solution: There is no simple way to filter duplicate titles from wp-admin. You could implement your own custom code that uses the wpv_filter_query API or the wpv_filter_query_post_process API to filter out matching titles, or you can use this jQuery snippet to hide them on the frontend: jQuery(document).ready(function(){ var strs = []; var dupes = []; jQuery('.wpv-loop').find('li > a').each(function(index,item){ var txt = jQuery(item).text(); if( strs.indexOf(txt) > -1 ) { dupes.push(index); } else{ strs.push(txt); } }); dupes.reverse(); for(var i=0; i<dupes.length; i++) { jQuery('.wpv-loop').find('li').eq(dupes[i]).remove(); } }); Note that the duplicates may appear momentarily on the front-end until the JavaScript has been executed. Relevant Documentation: |
2 | 5 | vor 6 Jahren, 9 Monaten | ||
Use my location for distance filter in Maps
Gestartet von: Matthias Reichl
in: Toolset Professional Support
Problem: I would like to show results within a certain distance from my current location. Solution: Add a distance filter to your View. In the Filter Editor, click "New Filter" and find the "Distance" filter under Toolset Maps. If you cannot see the Filter Editor section, you can enable this section by clicking "Screen Options" in the top right corner of the admin screen. Insert the filter control, then in the Query Filter editor you can select "Distance Center is set from user Location". Relevant Documentation: https://toolset.com/2017/12/toolset-maps-1-4-with-geolocation-filtering-by-distance-and-custom-map-styles/ |
2 | 3 | vor 6 Jahren, 9 Monaten | ||
Use of custom function as a views shortcode attribute
Gestartet von: Matthias Reichl
in: Toolset Professional Support
Problem: [wpv-view name="liste-der-vorstandsfunktionen-im-aktuellen-clubjahr-neu" wpvccy="[currentclubyear]"] Solution: Once you have done this then it shoulda start working, |
2 | 3 | vor 7 Jahren | ||
Conditional – check if specific child posts do not exist
Gestartet von: Matthias Reichl in: Toolset Professional Support |
2 | 5 | vor 7 Jahren | ||
Conditional display of parent posts – no default text
Gestartet von: Matthias Reichl
in: Toolset Professional Support
Problem: I am following the tutorial to conditionally display parent posts in a CRED form: Solution: Add an empty option to the beginning of the list of aux_anmelder_ids in the auxiliary View: [wpv-layout-start] [wpv-items-found] <!-- wpv-loop-start --> <div id="aux_anmelder_list" style="display:none"> <div class="aux_anmelder_id"></div> <wpv-loop> <div class="aux_anmelder_id">[wpv-post-id]</div> </wpv-loop> </div> <!-- wpv-loop-end --> [/wpv-items-found] [wpv-no-items-found] <strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong> [/wpv-no-items-found] [wpv-layout-end] Then change the JavaScript code to accept an empty string value instead of defaulting to zero: $('.aux_anmelder_id', list).each(function(index, element) { var id = $(element).text(); $('option[value="' + id + '"]', select).appendTo(new_select); }); This should copy the unset value from the original select field into the cloned select field. Change the select_text attribute here from "bitte auswählen" to "wer wird angemeldet" [cred_field field='_wpcf_belongs_person_id' value='' select_text='bitte auswählen' class='form-control' output='bootstrap'] Relevant Documentation: https://toolset.com/2013/10/conditional-display-of-parent-posts-in-cred/ |
2 | 3 | vor 7 Jahren | ||
prepolulate parent field in cred form
Gestartet von: Matthias Reichl in: Toolset Professional Support |
2 | 9 | vor 7 Jahren | ||
How to make default results blank for parametric search – continued?
Gestartet von: Matthias Reichl
in: Toolset Professional Support
Problem: Solution: |
2 | 5 | vor 7 Jahren | ||
two plugins inject links to all positions in Layout
Gestartet von: Matthias Reichl in: Toolset Professional Support |
2 | 3 | vor 7 Jahren | ||
show overlay if user clicks on a link to a page with no access
Gestartet von: Matthias Reichl
in: Toolset Professional Support
Problem: I would like to show two different links depending on whether or not the current User has access to the link destinations. Solution: Inline content access control can be accomplished with either Access Control shortcodes or conditional HTML. If your access conditions are defined by User Role, then you can use toolset_access shortcodes to display link A to certain roles, and display link B to other roles: [toolset_access role="Guest" operator="allow"]link a[/toolset_access] [toolset_access role="Guest" operator="deny"]link b[/toolset_access] Relevant Documentation: https://toolset.com/documentation/user-guides/access-control-texts-inside-page-content/ |
2 | 3 | vor 7 Jahren | ||
Show selected and unselected taxonomies in a view
Gestartet von: Matthias Reichl in: Toolset Professional Support |
2 | 2 | vor 7 Jahren, 2 Monaten |