WordPress.org

Support

Support » Plugins and Hacks » Carousel Horizontal Posts Content Slider » [Resolved] Link to Category page from the post

[Resolved] Link to Category page from the post

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author subhansanjaya

    @subhansanjaya

    I’m glad to hear you like it.

    Please, replace the code on line #67 in carousel-horizontal-posts-content-slider.php file in plugin folder with the following.

    $the_cat = get_the_category($post->ID);
    		$category_name = $the_cat[0]->cat_name;
    		$category_link = get_category_link( $the_cat[0]->cat_ID );
    		$slider_gallery.= '<br/><span class="chpcs_more"><a href="'.$category_link.'">read more</a></span>';

    I hope this helps.

    I’d appreciate it, if you could give it a rate.

    How can i do the same thing in current version? Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Link to Category page from the post’ is closed to new replies.
Skip to toolbar