image permalink PHP problem with Wordpress -


the site http://www.christopherwaller.com/wordpress/

if take on above site i'm trying insert link page on each of images on carousel, if click anywhere on image navigate new page. have created link want on post title text (ie. 1, 2 etc . . .) using

<h2 class="postitle"><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h2> 

but can't life of me find right php create same links on each of carousel photos?

i'm still trying grips php if advise great.thanks

this php

    <div class="edit"><?php edit_post_link(); ?></div>         </div>              <div class="postcontent">             <?php             $content = $post->post_content;             $searchimages = '~<img [^>]* />~';                           preg_match_all( $searchimages, $content, $pics );              $inumberofpics = count($pics[0]);             if ( $inumberofpics > 0 ) { ?>              <?php the_thumb('medium'); ?>             <?php } else { ?>             <div class="imgframe"></div>              <?php } ?>                       <div class="post_content">                  <h2 class="postitle"><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h2>                 <?php the_excerpt(); ?>                 <?php wp_link_pages('<p class="pages"><strong>'.__('pages:').'</strong> ', '</p>', 'number'); ?>                 <div class="post_meta">                 <div class="author"><?php the_author(); ?></div>                 <div class="date_meta"><?php the_date(); ?></div>                 <div class="category_meta"><?php the_category(', '); ?></div>                 </div>             </div>              </div>         <div class="postbg_bottom"></div>             <div class="social_links">             <a class="read" title="read rest of post" href="<?php the_permalink(); ?>">read more</a>               </div>         </div>             <?php endwhile ?>             <div class="navigation">                 <div class="nxt_page"><?php previous_posts_link('new entries »', 0); ?></div>                 <div class="prv_page"><?php next_posts_link('« old entries', '0') ?></div>              </div>                <?php endif ?>    </div>  </div>  <!--content end--> 

and css

/* easy slider */     #slider ul, #slider li{margin:0;padding:0;list-style:none;}    #slider li, #slider2 li{ width:1000px;height:1100px;}         #nextbtn{display:block; width:13px; height:14px; position:relative; left:0px; top:0px; z- index:1000; right:120px; top:-718px; float:left; left:840px; margin-right:20px; }    #prevbtn{display:block; width:13px; height:14px; position:relative; left:300px; top:0px; z-index:1000; right:120px; top:-718px; float:left; left:-100px; margin-right:20px; }      #prevbtn{ left:-20px;}                #nextbtn a, #prevbtn a{  display:block;position:relative;width:13px;height:14px;  background:url(images/sl_left.png) no-repeat 0 0;}     #nextbtn a{ background:url(images/sl_right.png) no-repeat 0 0;}    .graphic, #prevbtn, #nextbtn{padding:0; display:block; overflow:hidden; text-indent:-8000px;}      /* easy slider end */    /*slider end*/ 

you try using following instead of "the_thumb();"

add following theme's 'functions.php'

// add post thumbnail theme support     add_theme_support('post-thumbnails'); 

then use following replace 'the_thumb();'

if ( has_post_thumbnail() )     the_post_thumbnail(); 

i use myself , created plugin links post thumbnail post. seems you're trying same kind of thing hope works you.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -