wordpress kategori adı ve id sini almak


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <h3><?php $cat = get_the_category(); echo $cat[0]->cat_name; ?></h3>
  2. <?php if($cat[0]->cat_ID == 3) { ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.