Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mrlolrus

    (@mrlolrus)

    Still not solved. Ideas anyone?

    Thread Starter mrlolrus

    (@mrlolrus)

    Not sure if you actually misunderstoond my concept. Let me explain again. Basically what I want is the POST image in the content area to act as a link to next blog post. In example this site.. Meme-lol.com If you click the content image, it will send you to next image. That’s what I want. Heres another example DailyHaha

    Thanks.

    Thread Starter mrlolrus

    (@mrlolrus)

    No idea how to do that. Tried it but didn’t work out.

    This is my content.php

    <div class="entry-content">
    			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
    			<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
    		</div><!-- .entry-content -->
    		</div>
    		<?php endif; ?>
    		<span class="nav2">
    		<span class="previous-button">
    					<?php next_post_link( '%link', '<img src="/images/prev.png" alt="Previous"/>' ); ?>
    					</span>
    
    					<span class="random-post">
    					<?php $randomPost = $wpdb->get_var("SELECT guid FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' ORDER BY rand() LIMIT 1");
    					echo '<a href="'.$randomPost.'"><img src="/images/random.png" alt="Random"/></a>'; ?>
    					</span>
    
    					<span class="next-button">
    					<?php previous_post_link( '%link', '<img src="/images/Next.png" alt="Next"/>' ); ?>
    					</span>

    Got any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)