Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7387

    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

    #57781

    Hi,

    the thumbnail image uses the includesloop-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.

    #57782

    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!

    #57783

    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.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Custom Thumbnails for Portfolio’ is closed to new replies.