I have modified the code in the wp-skitter-slideshow.php file so it shows more elements in the <div class=”label_text”> (not only the post title but also <hr /> and post except). However I am unable to make it display the category name of the current post.
By analogy to the
'label' => get_the_title(),in the
query_posts( $query_posts );section I added another call to the
<?php echo $skitter['ctg']; ?>which is ascribed to the function
No success so far. How can I accomplish that? Am I missing something?
- The topic ‘How to display category name?’ is closed to new replies.