alexd-6
In den letzten 30 Tagen erstellte Support-Threads: 0
Lieblings-Forenthemen
Status | Thema | Supporter | Stimmen | Artikel | Aktualität |
---|---|---|---|---|---|
show repeating fields in view from parent cpt if exist
Gestartet von: alexd-6
in: Toolset Professional Support
Problem: The issue here is that he user wanted to display fields from the parent post if that child post has a parent. To do this just use the following shortcode. [wpv-conditional if="( '[wpv-post-datei name='_wpcf_belongs_projekte_id']' ne '' )"] <a href="[types field='datei' link='true' output='raw'][/types]" titel="[types field='datei' link='true' output='raw'][/types]"><i class="fas fa-download"></i> [types field='download-titel'][/types] [types field='art'][/types] Größe: [types field='size'][/types]</a> [/wpv-conditional] [wpv-conditional if="( '[wpv-post-datei name='_wpcf_belongs_projekte_id'']' eq '' )"] <a href="[types field='datei' link='true' output='raw'][/types]" titel="[types field='datei' link='true' output='raw'][/types]"><i class="fas fa-download"></i> [types field='download-titel'][/types] [types field='art'][/types] Größe: [types field='size'][/types]</a> [/wpv-conditional] Where you will replace _wpcf_belongs_projekte_id with _wpcf_belongs_{yourcptslug}_id |
2 | 11 | vor 6 Jahren, 8 Monaten | ||
Map marker pop-up open on page load
Gestartet von: alexd-6
in: Toolset Professioneller Support
Problem: Solution: ( function( $ ) { $( document ).bind( 'js_event_wpv_addon_maps_init_map_completed', function(){ var mapId = Object.keys(WPViews.view_addon_maps.maps)[0]; var map = WPViews.view_addon_maps.maps[mapId]; var mapsMarkers = WPViews.view_addon_maps.markers[Object.keys(WPViews.view_addon_maps.markers)[0]]; var markerId = Object.keys(mapsMarkers)[0]; var marker = mapsMarkers[Object.keys(mapsMarkers)[0]]; WPViews.view_addon_maps.infowindows[ mapId ].setContent( $('div.js-wpv-addon-maps-marker-'+markerId).html() ); WPViews.view_addon_maps.infowindows[mapId].open(map, marker); }); })( jQuery ); |
2 | 7 | vor 6 Jahren, 9 Monaten |