0
我需要呼應WordPress的查詢中的值。這裏是我的查詢第一:WordPress的 - 回聲價值Query_Posts
<?php if(have_posts()):?>
<?php query_posts('cat=14&posts_per_page=3');?>
<h1><?php echo get_the_category_by_id(14); ?></h1>
<?php the_content();?>
<?php endwhile;?>
<?php wp_reset_query(); ?>
<?php endif;?>
我需要呼應的價值是這樣的:<?php echo $tgh_first_category; ?>
我需要的地方它說:「14」,以呼應這一點 - 所以我需要更換cat=14
和id(14)
與那回聲。
我該怎麼做?