Forum Replies Created

Viewing 6 replies - 76 through 81 (of 81 total)
  • Thread Starter joshrodgers

    (@joshrodgers)

    David,

    Here are the styles:

    .thumb {
    	border: 1px solid #ddd;
    	margin: 20px 20px 0 0;
    	position: relative;
    	width: 100px;
    	/* Round Corners */
    	-khtml-border-radius: 5px;
    	-moz-border-radius: 5px;
    	-webkit-border-radius: 5px;
    	border-radius: 5px;
    }
    
    .thumb img {
    	/* Round Corners */
    	-khtml-border-radius: 5px;
    	-moz-border-radius: 5px;
    	-webkit-border-radius: 5px;
    	border-radius: 5px;
    }
    
    .new a img {
    	background: transparent url("images/new.png") no-repeat top right;
    	height: 100px;
    	position: absolute;
    	right: -3px;
    	top: -3px;
    	width: 100px;
    	z-index: 80;
    	/* Round Corners */
    	-khtml-border-radius: 5px;
    	-moz-border-radius: 5px;
    	-webkit-border-radius: 5px;
    	border-radius: 5px;
    }

    The spacer is just covering the image ?? I am using it purely for css purposes. You can see a screenshot here: https://www.box.net/shared/4100kta1jf

    Thanks,
    Josh

    Thread Starter joshrodgers

    (@joshrodgers)

    David,

    Thank you so much!! Everything works without problems or issues! You’re the bomb,

    Josh

    Thread Starter joshrodgers

    (@joshrodgers)

    David,

    Thank you so much for the code. I pasted it exactly as it was shown and it didn’t do anything. Everything displays correctly, the gallery, the site, but the code doesn’t display the div that I need ??

    Any ideas? Thanks,
    Josh

    Thread Starter joshrodgers

    (@joshrodgers)

    David,

    Thank you for your reply.

    I have a category called logos, that I have set to be displayed randomly. What I am looking for is for the latest three posts in the category logos to display a div (basically I am putting a “new” image on top of it).

    The current code works, but it is filtering all the posts, not just the posts in the logo category (if that makes sense). I apologize for the confusion and appreciate the help!! You can find what I have at: https://pastebin.com/B69wLAgv

    Thanks,
    Josh

    Thread Starter joshrodgers

    (@joshrodgers)

    David,

    Thank you for your response. I’m not sure where to put this…does it go outside the loop like a query, or inside?

    The order is random, which means that I couldn’t use a simple counter to accomplish what I need.

    I got really close with:

    <?php if ($post == $posts[0] || $post == $posts[1] || $post == $posts[2]) { ?>

    Which works, but that filters all the posts.

    I’d like it to be for a single category.

    Something like:

    <?php if (in_category("logos") && $post == $posts[0] || in_category("logos") && $post == $posts[1] || in_category("logos") && $post == $posts[2]) { ?>

    but that doesn’t work ??

    Any ideas? Thanks,
    Josh

    joshrodgers

    (@joshrodgers)

    Great piece of code. Is there a way where the function retrieves the first image in the post (the “Medium-Size” image), but links to the “Large-Size” image?

    Thanks,
    Josh ??

Viewing 6 replies - 76 through 81 (of 81 total)