saidB1322
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
Cet utilisateur n'a aucun sujet favori.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
exclude category from dropdown menu
Commencé par : saidB1322 dans : Types Community Support |
2 | 2 | Il y a 7 années et 9 mois | ||
Get images ids for wordpress gallery
Commencé par : saidB1322
dans : Types Community Support
Problem: [gallery ids="175,174,171,172"] I suggest you create another shortcode for it, see wordpress document: For example: add_shortcode('repeating-images-gallery', 'repeating_images_gallery_func'); function repeating_images_gallery_func($atts, $content) { global $post, $wpdb; $images = get_post_meta($post->ID, 'wpcf-my-slide', false); $ids = array(); foreach ($images as $image) { $attachment_id = $wpdb->get_var($wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE guid = %s", $image )); $ids[] = $attachment_id; } $out = do_shortcode('[gallery ids="' . implode(",", $ids) . '"]'); return $out; } 2) Put the gallery shortcode like this: |
2 | 5 | Il y a 7 années et 9 mois | ||
any future plane for adding relationship betwen users ans post types ?
Commencé par : saidB1322 dans : Types Community Support |
2 | 9 | Il y a 7 années et 11 mois |