Slideshow/Gallery plugin based on WP Core Gallery [closed]
See the code in my answer to a similar question. It strips out and reworks the gallery shortcode to use with jQuery Gallerific.
See the code in my answer to a similar question. It strips out and reworks the gallery shortcode to use with jQuery Gallerific.
You shouldn’t edit the parent theme to add functionality instead use child theme. To convert default wordpress gallery to your custom image gallery ( in your case carousel ), you can use jQuery.
You need to put wp_reset_postdata() after each while loop. It is best practice to put after each loop. Once you put, you will get images data for each custom post type. <?php // The Query $query1 = new WP_Query( $args ); if ( $query1->have_posts() ) { // The Loop while ( $query1->have_posts() ) { $query1->the_post(); … Read more
this usually happens because lightbox gets appended to every image . It would look like this in the source code <IMG src=”https://wordpress.stackexchange.com/questions/66237/your image” rel=lightbox”> You need to add a gallery name to the gallery so that it looks like this <IMG src=”https://wordpress.stackexchange.com/questions/66237/your image” rel=”lightbox[gallery1]”>
Betty, It doesn’t look like the plugin you are using supports zooming in an image. This means that you would have to modify the plugin, or add another plugin that would modify the images that are being loaded by the lightbox plugin. Here’s a link to a pretty neat jquery plugin to zooming images: Jquery … Read more
Pick up a copy of Advanced Custom Fields along with the Gallery Field add-on and you should be able to customize on-page galleries to your heart’s content. Just loop through the gallery and output the code to drive whatever JS based output solution you are pondering.
I guess you should use get_post_gallery_images function, this is example from documentation below function pw_show_gallery_image_urls( $content ) { global $post; // Only do this on singular items if( ! is_singular() ) return $content; // Make sure the post has a gallery in it if( ! has_shortcode( $post->post_content, ‘gallery’ ) ) return $content; // Retrieve the … Read more
To answer your question properly, and get the right output, we’d need to know many things, but, say that a) all of the images that you use in your blog posts are attached as featured images to them, and b) you want them all, and c) you don’t care, at least at this point, about … Read more
It is definitely possible!! Ok, here is what I did… My new loop looks like: <?php $ids = array();?> <?php foreach(query_posts(“category_name=photos&showposts=-1”) as $post_blog): ?> <?php $url = wp_get_attachment_image_src( get_post_thumbnail_id($post_blog->ID), ‘gallery-full’ ); ?> <?php $thumbs = wp_get_attachment_image_src( get_post_thumbnail_id($post_blog->ID), ‘gallery-thumbnail’ ); ?> <?php list($width) = getimagesize($thumbs[0]); ?> <?php $ids[] = array(“id_post” => $post_blog->ID, “width” => $width, ‘url’ … Read more
General idea based on the use of regular Posts, not Custom Post Types (which is what the plugin CPT-UI is about): one parent Category -Photos under it, the needed sub-categories -Personal, Professional, etc one post corresponds to one Album -Vacations 2012, News Coverage, etc upload all images of the Album into the post, put titles, … Read more