WordPress.org

Ready to get started?Download WordPress

Forums

Skitter Slideshow
How to display category name? (2 posts)

  1. kanabi
    Member
    Posted 1 year ago #

    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?

    http://wordpress.org/extend/plugins/wp-skitter-slideshow/

  2. kanabi
    Member
    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic