Help Me
-
Hi to all,
I can’t get the value of “get_post_meta($post->ID, “img”, true)” in my funtion, can someone help me.
heres the code
<?php // Section function sections($cat,$cattitle){ $cat = $cat; $cattitle = $cattitle; ?> <div class="ja-box column ja-zintheme"> <?php $recent = new WP_Query("cat=$cat&showposts=1"); while($recent->have_posts()) : $recent->the_post(); $post_img = '<img src="https://localhost/fil/wp-content/themes/t-moz/timthumb.php?src='.get_post_meta($post->ID, "img", true).'&h=25&w=25&zc=1&q=100"/>'; ?> <div class="inner clearfix"> <div class="ja-zincat clearfix"> <h3> <a title="" href="#"> <span><?php echo $cattitle ?></span> </a> </h3> </div> <div class="ja-zincontent clearfix"> <div style="width: 160px; height: 80px;" class="ja-zinimg"> <?php echo $post_img; ?> </div> <h4 class="ja-zintitle"> <a title="<?php the_title(); ?>" href="<?php the_permalink() ?>"><?php the_title(); ?></a> </h4> <p> <?php excerp(80,1); ?> </p> </div> </div> <?php endwhile; ?> </div> <?php } ?>
- The topic ‘Help Me’ is closed to new replies.