Load Gallery Images with Title on Homepage BX Slider

I would recommend using this plugin instead: https://wordpress.org/plugins/cpt-bootstrap-carousel/ It works well with the built-in Twitter Boostrap 3 in Roots.oi theme (Responsive) and it comes along with a CPT named carousel. Looking in your code: The get_post_gallery_images() function only returns the url and it doesn’t contain any Gallery Image Title content.

Multiple post image, echo url (path of image)

found the solution: <div class=”fill” style=”background-image:url(‘<?php $custom = MultiPostThumbnails::get_post_thumbnail_id(get_post_type(), ‘header-image’, $post->ID); $custom=wp_get_attachment_image_src($custom,’header image’); echo $custom[0]; ?>’);”></div>

How to display title of attached image in post?

First you need to get your attached image ID, how you get it depends on how you’re setting the image. The generic idea is that you get the attachment ID then you can simply use get_the_title( $attachment_id ). If you’re setting it as a Featured Image ( Post Thumbnail ) then you can use the … Read more

How do you import images from a URL in your post?

You could create a small plugin for this, here is an small example that will try to download and attach a file based on the url in the excerpt field for the post: add_action(‘publish_post’, ‘auto_featured_image_publish_post’); function auto_featured_image_publish_post($post, $post_id) { // check if this post is saved for the first time if($post->post_date == $post->post_modified) { // … Read more

Help with resizing of featured images on WooCommerce homepage

WooCommerces css is pretty specific so it can be quite tricky to override it sometimes. To override their css you need to be MORE specific with your css. So an example would be: @media only screen and (min-width: 768px) { div.home-intro ul.featured-products li:nth-child(4n), div.home-intro ul.featured-products li.fourth { width: 20%; margin-top: 0; } } In the … Read more