Hide Gallery from the_conent
Hide Gallery from the_conent
Hide Gallery from the_conent
Can I have the same image in multiple NextGen galleries? [closed]
Couldn’t you make it shorter by doing the following? function meks_gallery_atts($output, $pairs, $atts) { $output = array(); if (in_array($output[‘size’], array(1,2,3,4,5,6,7,8))) { $output[‘size’] = ‘square_thumb_’ . $output[‘size’]; }else{ $output[‘size’] = ‘square_thumb_9′; } return $output; } It sounds like $atts[‘columns’] is never 3. Have you tried strict-checking on strings, rather than loose-checking on integers? is using this: … Read more
Interesting problem… I went into the page in Chrome and used the Development Tools (ctrl+shift+I) or just right click on the element and select Inspect. The images are being displayed in a Flexbox and it looks like there is a conflict between the Flexbox and the blocks above it. There are a number of ways … Read more
The only solution I know is manipulating the DOM in Javascript: Select all figure containing an a, look for its figcaption and append it to the a.
Your problem is that you installed it in a subdirectory of WordPress. Both WordPress and Gallery 3 will use virtual URLs in their domain, and with them both acting on the same folders, neither system knows what to do. So you have http://blog.url/ and http://blog.url/gallery3/ which is also http://g3.blog.url/. The subdomain will point to that … Read more
Someone has just answered the question for me on the wordpress forum. It turns out that there was 5px of padding in the gallerys css file (line 301) that I hadn’t found: .ngg-widget, .ngg-widget-slideshow { margin:0; overflow:hidden; padding:5px 0 0 0; <— change this to 0 0 0 0 or just 0 text-align:left I didn’t … Read more
You should try to install the NextGEN gallery plugin. http://wordpress.org/extend/plugins/nextgen-gallery/ With it, you can easily achieve the page you want. Once installed, create a few galleries and upload your pictures. You can order your single galleries into albums. On the pages listing the galleries and the albums, you can see their unique ID. Look the … Read more
Another option (one that I’m using to convert from NextGen Gallery to native WordPress galleries), is to use the Add From Server Plugin, to import images to the WordPress Media Manager.
This should do it: global $post; $ancestors = get_post_ancestors($post->ID); $photos = get_children(array( ‘post_mime_type’ => ‘image’, ‘post_parent’ => array_shift($ancestors), )); $index = 0; foreach($photos as $photo){ $index++; if($photo->ID === $post->ID) break; } printf(‘%d out of %d’, $index, count($photos));