Hi, is it possible to specify custom thumbnails to appear on the portfolio page, rather than it displaying the first image of the portfolio item as it does now?
Thanks in advance
Custom Thumbnails for Portfolio
4 posts from 3 voices-
Posted 1 year ago #
-
Hi,
the thumbnail image uses the includes\loop-portfolio.php file to generate this. It's generated by
//get_feature image here $image = ""; $image = get_the_post_thumbnail( get_the_ID(), 'portfolio' ); $output = ""; if($image) { $output = "<a class='portfolio_image external-link' href='".get_permalink()."' rel='bookmark' title='".__('Permanent Link:','avia_framework')." ".get_the_title()."'>".$image."</a>"; }You can try and add some custom fields to your posts and insert the image there - and then get that thumbnail instead of what it does now.
I imagine there are plugins to set custom thumbnails for posts, though I have no experience using this.
Posted 1 year ago # -
Thanks for the reply, I've installed and activated the Hungred Thumbnail plugin, which displayed the default custom thumbnail on the portfolio page as soon as I activated, however the box to insert custom thumbnails only appears if you're adding a new post, not a portfolio item, do you know if there's a way to get such plugins to work with portfolio/pages instead of posts?
Thanks in advance!
Posted 1 year ago # -
Hey,
I'd ask in the support forum of wordpress.org how to activate "Hungred Thumbnail" for custom post types too. I'm sure it's not a tricky task - maybe one or two lines of code need to be changed.Posted 1 year ago #
Reply
You must log in to post.














