Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #144

    Hi there,

    I have set up the portfolio page at but the thumbnail is not working. I have turned on the image resize etc. Also I would like the image to link to a page rather than the lightbox. Is this possible?




    this looks like you didnt setup the portfolio page in your worpdress backend correctly. did you choose this page as portfolio page at twicet options -> portfolio?

    you can read here how to change the link of the portfolio image:

    if you want to link it to the blog post:

    if you want to link it to any link of your choice:


    Yes I did and then changed it not even thinking about your support.

    Could you please take a look now.



    Ok checked it. you set up everything correctly, but the image is far to big for your server as it seems.

    The script rans out of memory when trying to resize it

    Try to upload a smaller version and it should work fine ;)




    hey Kriesi,

    I followed your instruction, to create a link instead of a image popup.

    The code had 1 error, (missing some <?php ?> tags, but I think i sucessfully modified it, at least its working.

    I used this code in your portfolio_template:

    And I used a new custom field called new_link ( on every post)

    The problem is, this modifies the portfolio template in a way I don’t want at all.

    I’m using this new portfolio as a category chooser, when you click on image I’ll link to another portfolio page with the actual images.

    As so, I need to keep both, the new portfolio and the original portfolio.

    Can you advise me with that, or maybe another workaround to have small thumbs on a page linking to different portfolios?

    this is what i want to accomplish:

    and I was thinking on something like: (inside template file)

    if ( $link == null)

    old code goes here


    new code

    but I’m not a php programmer so I’m lost.


    You’re on the right lines with if ( $link == null). You can adapt the code the code like this:

    <?php $link = get_post_meta($post->ID, "new_link", true);?>

    <?php if($link) { // if there is a link?>

    <?php echo '<a href="'.$link.'" ><img class="aligncenter" src="'.$portfolio_image_small.'" alt="" /></a>';

    <?php } else { // there's no link ?>

    <?php echo '<a href="'.$portfolio_image.'" rel="lightbox[portfolio]"><img class="aligncenter" src="'.$portfolio_image_small.'" alt="" /></a>';

    <?php } // end if ?>

    Let me know how you get on and if you need questions answered let me know.

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

The topic ‘Portfolio’ is closed to new replies.