shawnW-3
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Using OR instead of AND for Taxonomy Conditional on Custom Field Group…
Commencé par : shawnW-3 in: Toolset Professional Support |
1 | 2 | Il y a 4 années | ||
Alt Text Output for Images from Custom Field…
Commencé par : shawnW-3
in: Toolset Professional Support
Problem: Solution: function media_info_func( $atts ) { // Attributes $atts = shortcode_atts( array( 'field' => '', 'info' => '', ), $atts ); global $post, $wpdb; $field = $atts['field']; $info = $atts['info']; $image_url = get_post_meta( $post->ID, $field ); $attachment = $wpdb->get_col($wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE guid='%s';", $image_url )); $attachment_id = $attachment[0]; if ( $field && $info ) { switch($info) { case 'id': return $attachment_id; break; case 'title': // return return ("[wpv-post-title item='$attachment_id']"); return wpv_do_shortcode("[wpv-post-title item='$attachment_id']"); break; case 'alt': // return ("[wpv-post-field name='_wp_attachment_image_alt' item='$attachment_id']"); return do_shortcode("[wpv-post-field name='_wp_attachment_image_alt' item='$attachment_id']"); break; case 'caption': // return ("[wpv-post-excerpt output='raw' item='$attachment_id']"); return do_shortcode("[wpv-post-excerpt output='raw' item='$attachment_id']"); break; case 'description': // return ("[wpv-post-body view_template='None' item='$attachment_id']"); return do_shortcode("[wpv-post-body view_template='None' item='$attachment_id' output='raw']"); break; } } } add_shortcode( 'media-info', 'media_info_func' ); The shortcode can be used as follow: Image ID: [media-info field='wpcf-single-image' info='id'] Title: [media-info field='wpcf-single-image' info='title'] Alt text: [media-info field='wpcf-single-image' info='alt'] Caption: [media-info field='wpcf-single-image' info='caption'] Description: [media-info field='wpcf-single-image' info='description'] |
2 | 5 | Il y a 4 années et 1 mois | ||
Re-Order Checkbox Field and Use it for Conditionals
Commencé par : shawnW-3 in: Toolset Professional Support |
2 | 4 | Il y a 4 années et 1 mois | ||
Locations missing from map search – google map bug…
Commencé par : shawnW-3 in: Toolset Professional Support |
2 | 2 | Il y a 4 années et 3 mois | ||
Crashed Website, Only Error Shows Toolset Maps…
Commencé par : shawnW-3 in: Toolset Professional Support |
3 | 6 | Il y a 4 années et 3 mois | ||
Parent Post form Field
Commencé par : shawnW-3 in: Toolset Professional Support |
2 | 9 | Il y a 4 années et 5 mois | ||
Need help understanding wpv-gelocation – Is ajax an option?
Commencé par : shawnW-3 in: Toolset Professional Support |
2 | 4 | Il y a 4 années et 7 mois | ||
Mobile Map Conflict with Two Different Plugins…
Commencé par : shawnW-3 in: Toolset Professional Support |
2 | 2 | Il y a 4 années et 7 mois | ||
I'm trying to understand why I'm getting so many hits on my Google Maps API…
Commencé par : shawnW-3 in: Toolset Professional Support |
2 | 2 | Il y a 4 années et 8 mois | ||
My "Dealer Locator" Map View Doesn't Show Results When Searching By Country
Commencé par : shawnW-3 in: Toolset Professional Support |
2 | 6 | Il y a 4 années et 8 mois | ||
Conditional isn't working for wpv-post-taxonomy…
1
2
Commencé par : shawnW-3 in: Toolset Professional Support |
2 | 20 | Il y a 4 années et 9 mois | ||
Trying to insert a Parent Taxonomy Title in a View Whose Parent Is Set by Parent
Commencé par : shawnW-3 in: Toolset Professional Support |
2 | 4 | Il y a 4 années et 10 mois | ||
wpv-post-type – shows "Pages" rather than the post type of the view
Commencé par : shawnW-3 in: Toolset Professional Support |
2 | 5 | Il y a 4 années et 10 mois | ||
URGENT!!! – Google Maps Charging Large Sum of Money For Usage…
Commencé par : shawnW-3
in: Toolset Professional Support
Problem: Solution: You can find the proposed solution in this case with the following reply: Relevant Documentation: |
2 | 7 | Il y a 4 années et 11 mois | ||
Unexpected output when using HTML Conditionals
Commencé par : shawnW-3
in: Toolset Professional Support
Problem: When removing parts of the content that is wrapped in the HTML Conditional, the issue suddenly disappears, but it does not seem related to any content type at all. Solution: Try to split the HTML conditional in several chunks. If then it works definitely the erratum https://toolset.com/errata/shortcodes-in-conditionally-displayed-content-may-not-be-executed-on-the-front-end/ is the cause of the issue. |
2 | 12 | Il y a 4 années et 11 mois |