[Resolved] Code for tiles to show portfolio images
Hi again Mike,
Thanks for your help last time. I’m back again with another query!
Looking here http://www.robertgcooke.co.uk/wordpress/
I’ve managed to get the plugin to display my Portfolio items but it won’t pick the images up.
WP-Tiles is inserted into the template with <?php the_wp_tiles();?> and is controlled from the plugin settings page with the Post Type set to ‘portfolio’ and including posts 3410,3408,3396,3394,3393,3392,3391,3390,3389,3388,3387,3386,3385,3384,3409,3397,3395,3411 which are all of my Portfolio services.
Problem that I think I’m having is that this template uses a non-standard Portfolio function. Taking the top left tile as an example – that links through to here http://www.robertgcooke.co.uk/wordpress/portfolio/conference-exhibition-staff/ – you can see that it does have some images associated with it. In the back end, as well as setting gallery images (which presumeably are the images you see when you click the link above), you can set a ‘Cover Image’ which shows up on the Portfolio overview page here http://www.robertgcooke.co.uk/wordpress/event-staff/ and in the source the whole preview including the image is defined like so
<div class="item notloaded 4 " data-id="3391" data-url="conference-exhibition-staff" data-src="http://www.robertgcooke.co.uk/wordpress/portfolio/conference-exhibition-staff/"> <a href="http://www.robertgcooke.co.uk/wordpress/event-staff/#/conference-exhibition-staff" data-tourl="false"> <div class="shadow"></div> </a> <div class="small-loader"></div> <a href="http://www.robertgcooke.co.uk/wordpress/event-staff/#" data-tourl="false"> <div class="closeme"> <div class="icon-remove"></div> </div> </a> <a href="http://www.robertgcooke.co.uk/wordpress/event-staff/#/conference-exhibition-staff" data-tourl="false"> <div class="item-wrapper" > <figure> <img src="http://www.robertgcooke.co.uk/wordpress/wp-content/uploads/2013/10/Showforce-Conference-Exhibition-Event-Staff-205x240.jpg"/> </figure> <div class="bottom-holder"> <div class="desc-holder"> <h3>Conference & Exhibition Staff</h3> <h4>Event Staff</h4> <i class=" icon-picture "></i> </div> </div> </div> </a> </div>
Now, I had a look through the support threads and came across this one here: http://wordpress.org/support/topic/showing-images-attached-to-custom-post-type-post?replies=7 – so it can be done, it’s just a case of telling it where to look for the right attachment.. right?
Many thanks again,
- The topic ‘[Resolved] Code for tiles to show portfolio images’ is closed to new replies.