• 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 <div class="label_text"><?php echo $skitter['ctg']; ?> which is ascribed to the function get_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)
  • Thread Starter kanabi

    (@kanabi)

    I’m refreshing my query.

    How can I show the category name of the post that is being currently displayed on the Skitter?

    All I can get so far is the array of category names of all posts in the Skitter. No matter if I use the_category() or get_the category()

    Please help!

Viewing 1 replies (of 1 total)
  • The topic ‘How to display category name?’ is closed to new replies.