Gallery Shortcode Showing IDs

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.

How to make gallery images responsive?

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

Gallery backend only

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

Custom gallery in wp3.5

I guess you were sorta correct, @david.binda, lol! After a lot of reading, and experimenting, I added the code below to the else statement in my functions file, and it appears to be working as it did before, although the process seems a lot “bulkier” with the new gallery trying to do it’s thing. $post_content … Read more

Original image not saving?

The default image sizes of WordPress are “thumbnail”, “medium”, “large” and “full” (the size of the image you uploaded). These image sizes can be configured in the WordPress Administration Media panel under Settings > Media. This is how you can use these default sizes with the_post_thumbnail(): the_post_thumbnail(); // without parameter -> ‘post-thumbnail’ the_post_thumbnail( ‘thumbnail’ ); … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)