saidB1322
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
exclude category from dropdown menu
Started by: saidB1322 in: Types Community Support |
2 | 2 | 7 years, 9 months ago | ||
Get images ids for wordpress gallery
Started by: 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 | 7 years, 10 months ago | ||
any future plane for adding relationship betwen users ans post types ?
Started by: saidB1322 in: Types Community Support |
2 | 9 | 7 years, 11 months ago |