Get gallery and product gallery images full size
Get gallery and product gallery images full size
Get gallery and product gallery images full size
Okay, looks like it was my fault, I’ve been playing with shortcodes long time ago and I found out something like this within functions.php: require_once (‘gallery-shortcode.php’); Apparently it replaced the original shortcode and when it happens everything gallery-related breaks / returns nothing 🙂
Use posts_per_page instead of numberposts So the $args for the get_posts would be like below and also the param for post_status is wrong. Check the codex for the details here Also when when you are fetching one attachment it is useless to set a counter for it. You can use the modified function function get_random_gallery_images(){ … Read more
When you upload an attachment from the post edit screen, WordPress set the current post ID as the post_parent of the attachment. And that’s how you get these attachments: $post_ID = 123; $attachments = get_posts( array( ‘post_type’ => ‘attachment’, ‘post_status’ => ‘inherit’, ‘post_parent’ => $post_ID, ‘post_per_page’ => -1, ‘post_mime_type’ => ‘image/*’ ) ); foreach ( … Read more
WP Gallery Image Page Issue When 2 galleries share one image
How can I make gallery slideshow width fit to picture width?
You can do that using the default gallery features already included in WordPress or install the Jetpack plugin which enables you to create tiled galleries. http://jetpack.me/support/tiled-galleries/ WordPress also includes a built in slide show feature and you can add thumbnail images underneath a full width image like what you linked to.
You can use Advanced Custom Fields plugin – paid, to to that: http://www.advancedcustomfields.com/add-ons/gallery-field/ Plase what a video. Also on lightbox you need this Jquery plugin: http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/ Create a custom post type with name gallery. Then create a page-gallery.php and put this code: : <?php $args=array( ‘post_type’ => ‘gallery’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => 12, ‘paged’ … Read more
Breadcrumbs for Single Image page
Is it possible to create a separate page for custom posts gallery?