WordPress.org

Forums

How to get subcategory page link? (1 post)

  1. mandipluitel
    Member
    Posted 1 year ago #

    Hello there i am having issue to get the subcategory link in more see all post link

    Here this code gives you the link to the category

    <a href="<?php get_category_link( $category_id ); ?>">See All Posts</a>

    but i want a code which can give me the link to subcategory not the category.

    Any help would be appreciated.
    Mandip

Topic Closed

This topic has been closed to new replies.

About this Topic