کدهایی که گذاشتید توی اون خط که نوشتید ژانر فیلم به جای اون کلمه باید بزارید movie-genreوقتی هم روی یه دسته زیر فیلم کلیک میکنم این ارورو میده میشه راهنماییم کنین
Catchable fatal error: Object of class WP_Error could not be converted to string in /home/betmovi1/public_html/wp-content/themes/Boxoffice/taxonomy-movie-genre.php on line 29
کار خاصی نمیکنم که هزینه بخوادکد:<?php get_header(); ?> <div id="content"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="box " id="post-<?php the_ID(); ?>"> <div class="boxim"> <?php if ( has_post_thumbnail() ) { ?> <a href="<?php the_permalink() ?>"><img class="boximg" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php get_image_url(); ?>&h=270&w=180&zc=1" alt=""/></a> <?php } else { ?> <a href="<?php the_permalink() ?>"><img class="boximg" src="<?php bloginfo('template_directory'); ?>/images/dummy.png" alt="" /></a> <?php } ?> <div class="scorebox"> <span class="sholder"> <span class="scorebar score-<?php $rscore=get_post_meta($post->ID, 'wtf_rscore', true); echo $rscore; ?>"> </span> </span> </div> </div> <div class="boxentry"> <div class="btitle"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> </div> <div class="bmeta"> <span class="mgenre"><?php echo get_the_term_list( $post->ID, 'movie-genre', '', ', ', '' ); ?></span> <span class="mcom"><?php comments_popup_link('0', '1', '%'); ?></span> </div> <div class="clear"></div> </div> </div> <?php if(++$counter % 3 == 0) : ?> <div class="clear"></div> <?php endif; ?> <?php endwhile; ?> <?php getpagenavi(); ?> <?php else : ?> <h1 class="title">پيدا نشد</h1> <p>با عوض پوزش. صفحه اي که به دنبالش هستيد اينجا نيست.</p> <?php endif; ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
در مورد نشون دادن دسته ها هم کلاسم شروع شده تموم شد نگاه میکنم بلد بودم حتما درست میکنم راستش آخه اصلا وارد نیستم





پاسخ با نقل قول