• I would like to display thumbnails of projects on my main page for a category “clients” but not display the category clients in the loop. I found a page that describes how to do this for portfolio purposes but it doesn’t quite solve the needs that I have:

    https://bloghelper.is-there.net/how-to-use-wordpress-for-a-portfolio-site-part-1/

    If I exclude the clients category then it doesn’t show the thumbnails, so what other solution can I have?

    The above method basically uses custom fields, in the field you put the thumbnail to the project and output it via:

    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
    
    <?php echo '<img class="thumb" src="'.get_post_meta($post->ID, 'thumbnail', TRUE).'" />';
    
    </a>

    While this is all well and good it doesn’t work if you hide the category on the main page because then the output of the thumbnail hides, any suggestions?

Viewing 3 replies - 1 through 3 (of 3 total)
  • maybe putting the thumbnails in the sidebar? call specifically to that category ID, and since it’s outside the Loop, that exclusion won’t bother it? I know that’s not the ideal solution but may be the only one.

    Thread Starter qwik3r

    (@qwik3r)

    The above call is outside the loop anyway. Are you basically just recommending putting the above action into another file and calling it that way? I tried it and unfortunately it does the same thing which is hide the thumbnails since they are still associated with the category in which I am excluding

    it just seems like there is some plugin that may force it to display it somewhere on your page even if the cat is excluded. Hmm. The other thing to do, and I know you don’t want to hear this, is a second category just for those thumbs.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display thumbnails of recent projects on main page?’ is closed to new replies.