alexd-6
Admite hilos creados en los últimos 30 días: 0
Debates favoritos del foro
Status | Debate | Supporter | Voces | Mensajes | Caducidad |
---|---|---|---|---|---|
show repeating fields in view from parent cpt if exist
Iniciado por: alexd-6
en: 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 | hace 6 años, 9 meses | ||
Map marker pop-up open on page load
Iniciado por: alexd-6
en: 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 | hace 6 años, 10 meses |