Displaying a featured image (only img url) as the img src?

I have the following code: if (themedy_get_option(‘product_gallery’)) { add_action(‘genesis_post_content’, ‘themedy_product_images’, 1); } function themedy_product_images() { ?> <?php global $post; $images = get_children( array( ‘post_parent’ => $post->ID, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘numberposts’ => 999, ‘order’=> ‘ASC’, ‘orderby’ => ‘menu_order’ ) ); if ( $images ) { ?> <div class=”twocol-one”> <?php echo get_the_post_thumbnail( $post->ID, ‘product-400×600’ … Read more

Get a list of galleries from an album in NextGEN Gallery [closed]

Closed. This question is off-topic. It is not currently accepting answers. Your question should be specific to WordPress. Generic PHP/JS/HTML/CSS questions might be better asked at Stack Overflow or another appropriate site of the Stack Exchange network. Third party plugins and themes are off topic. Closed 7 years ago. Improve this question I want to … Read more

change wordpress gallery shortcode to slider

Hi I wanted to change the default WordPress gallery short-code and make it a slider. remove_shortcode( ‘gallery’ ); function gallery_filter( $atts, $content = null ) { extract(shortcode_atts(array(‘gallery_name’ => ”), $args)); $args = array( ‘post_type’ => ‘attachment’, ‘numberposts’ => 3, ‘post_parent’ => $post->ID, ‘order’ => ‘ASC’, ‘orderby’ => ‘menu_order’, ‘post_mime_type’ => ‘image’ ); $output .= ‘<script … Read more

Rewriting WordPress Gallery Shortcode with Bootstrap Carousel

In a recently personal theme project for publishing travel posts, I desired a slider-style image gallery rather than the standard column/list-style one WordPress uses out of the box. I like the look-and-feel of the Bootstrap Carousel, so my challenge was this: Is it possible to mash up the WordPress Gallery Shortcode with Bootstrap’s Carousel? I’ve … Read more

How to make a customized “Create Gallery” tab in the ‘Add Media’ window?

I’m developing a plug-in and wanting to make a customized version of the the “Create Gallery” tab of WP v4.0, but have the resulting output (i.e. what gets inserted into the TinyMCE editor) to be different. The user would click “Add Media”, then “Create Media Gallery” on the left, then pick any files (not just … Read more

How do I create a full-bleed background image on text mouseover? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Asking to recommend a product (plugin, theme, book, hosting provider), tool, library or off-site resource is out of scope of the site, as it attracts opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it. Closed … Read more