How to have Tiled Galleries like in WordPress.com?
Tiled galleries have been proprietary feature of wordpress.com, but later also released as Jetpack feature since version 2.1 of it.
Tiled galleries have been proprietary feature of wordpress.com, but later also released as Jetpack feature since version 2.1 of it.
OK, I just tested this a little further. Indeed, if you select 3 columns (the default WP gallery column count) and do a var_dump( $gallery ); you will see that there is no column key in the array. (like for example with 4 columns [“columns”]=> “4”). You can maybe do something like this: $gallery = … Read more
Remove: $content = get_the_content(); and replace: <p><?php echo $content; ?></p> with: <?php the_content(); ?> See this note on the Codex page for get_the_content(): An important difference from the_content() is that get_the_content() does not pass the content through the ‘the_content’ filters. This means that get_the_content() will not auto-embed videos or expand shortcodes, among other things.
In order for your images to be responsive they require CSS. The CSS will inform the image to stretch 100% of the available space and to automatically adjust the height. img.responsive { width: 100%; height: auto; } Because you don’t want to apply this rule to all images, you’ll need to add a class on … Read more
I used to rely on image gallery plugins, like PhotoQ -which no longer exists- or NextGen. For one, a plugin may die and leave a migration problem, or it may be well maintained but require too much of custom coding. Nowadays I try to keep it within WordPress attachment post type. A plugin may handle … Read more
I just pulled my hair out for a bit over this. I’ve come to the conclusion that the plugin called “Lightbox Gallery” is to blame. Were you using the same? If so, remove it, and you’ll see that your pages link to the full sized images. Try a different lightbox plugin. I’ve used this plugin … Read more
I know this is a bit of cheating but if I use this code essentially I achieve what I want, albeit the thumbnails are loaded on the page unnecessarily.. <div style=”height:100px;overflow:hidden;”> </div>
Konstantin Kovshenin from Automattic built a small WP plugin hosted here at GitHUB, which does pretty much exactly what you are asking for. It does not seem to solve the whole migration as it works only for [nggallery] shortcodes, but anyone can fork it and add some more lines to solve the rest, right?
Search the posts by content for the string ‘[gallery’. You get an array of posts which you can list then in a widget or in plain PHP code.
How to use the WP export and get images that are contained in a posts gallery