alexd-6
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
show repeating fields in view from parent cpt if exist
Commencé par : 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 | Il y a 6 années et 8 mois | ||
Map marker pop-up open on page load
Commencé par : 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 | Il y a 6 années et 9 mois |