Php 重复内容标题如何修复?
index.php代码:Php 重复内容标题如何修复?,php,Php,index.php代码: <?php if (function_exists('get_highest_score_category')): ?> <?php get_highest_score_category(81); ?> <?php endif; ?> 1./images/metin2kukukuk.png/> /图像/.png/> 例如我的问题: 我试图理解代码,这就是我能够想到的: <?php query_posts('sh
<?php if (function_exists('get_highest_score_category')): ?>
<?php get_highest_score_category(81); ?>
<?php endif; ?>
1./images/metin2kukukuk.png/>
/图像/.png/>
例如我的问题:
我试图理解代码,这就是我能够想到的:
<?php query_posts('showposts=5&orderby=date&cat=81'); ?>
<?php while (have_posts()) : the_post(); ?>
<?php if (function_exists('z_taxonomy_image_url')) echo z_taxonomy_image_url(); ?>
<div class="kOrta1"><div class="oNo">1.</div><div class="oTip"><img src="<?php bloginfo('template_url'); ?>/images/metin2kucuk.png" /></div><div class="oServer">
<?php if (function_exists('get_highest_score_category')): ?>
<?php get_highest_score_category(81); ?>
<?php endif; ?></div><div class="oDurum"><img src="<?php bloginfo('template_url'); ?>/images/<?php echo get_post_meta($post->ID, "metin_selectt", true); ?>.png" /></div><div class="oZorluk"><?php echo get_post_meta($post->ID, "metin_select", true); ?></div><div class="temizle"></div></div>
<?php endwhile; ?>
</div></div></div></div>
1
/images/metin2kukuk.png/>
/图像/.png/>
我看到的只是一个怪圈。我猜
have_posts()
和the_post()。但问题仍然不是很清楚,请提供更多信息。请尝试通过发布相关代码使您的情况更清楚。发布()的功能是什么?
<?php
query_posts('showposts=5&orderby=date&cat=81');
while (have_posts()) : the_post();
if (function_exists('z_taxonomy_image_url')) echo z_taxonomy_image_url();
?>
<div class="kOrta1">
<div class="oNo">1.</div>
<div class="oTip">
<img src="<?php bloginfo('template_url'); ?>/images/metin2kucuk.png" />
</div>
<div class="oServer">
<?php
if (function_exists('get_highest_score_category')):
get_highest_score_category(81);
endif;
?>
</div>
<div class="oDurum">
<img src="<?php bloginfo('template_url'); ?>/images/<?php echo get_post_meta($post->ID, "metin_selectt", true); ?>.png" />
</div>
<div class="oZorluk">
<?php
echo get_post_meta($post->ID, "metin_select", true);
?>
</div>
<div class="temizle"></div>
</div>
<?php
endwhile;
?>
</div>
</div>
</div>
</div>