saidB1322
In den letzten 30 Tagen erstellte Support-Threads: 0
Lieblings-Forenthemen
Dieser Benutzer hat keine Lieblingsthemen.
Forum Topics Created
Status | Thema | Supporter | Stimmen | Artikel | Aktualität |
---|---|---|---|---|---|
exclude category from dropdown menu
Gestartet von: saidB1322 in: Types Community Support |
2 | 2 | vor 7 Jahre, 9 Monate | ||
Get images ids for wordpress gallery
Gestartet von: saidB1322
in: 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 | vor 7 Jahre, 10 Monate | ||
any future plane for adding relationship betwen users ans post types ?
Gestartet von: saidB1322 in: Types Community Support |
2 | 9 | vor 7 Jahre, 11 Monate |