How to display category name?
-
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 thequery_posts( $query_posts );
section I added another call to the<div class="label_text">
–<?php echo $skitter['ctg']; ?>
which is ascribed to the functionget_the_category()
.No success so far. How can I accomplish that? Am I missing something?
https://www.ads-software.com/extend/plugins/wp-skitter-slideshow/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to display category name?’ is closed to new replies.