WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] To Display a Specific "Link Category" for a Specific "Post Category" (3 posts)

  1. Njualem
    Member
    Posted 5 years ago #

    I am looking for a plugin that can display a specific "Link Category" on the sidebar for a specific "Post Category" and the subsequent posts in that "Post Category" and also (if possible) to display these links at the bottom of each post in the specific "Post Category".

    I will also welcome any coding ideas on modifying existing plugins to achieve this goal.

    Thanks

  2. MichaelH
    Member
    Posted 5 years ago #

    display a specific "Link Category" on the sidebar for a specific "Post Category" and the subsequent posts in that "Post Category"

    If a 'category' view, display links with same category

    <?php
    if ( is_category() ) {
    $cat = get_query_var('cat');
    $category=get_category($cat);
    wp_list_bookmarks('category_name='.$category->cat_name); } ?>
    }
    ?>

    to display these links at the bottom of each post in the specific "Post Category".

    Check tugbucket's posts or look at a related post plugin

  3. Njualem
    Member
    Posted 5 years ago #

    Thanks Michael for your respond. I will implement the code your have given me as fast as possible.

    Thanks once more.

Topic Closed

This topic has been closed to new replies.

About this Topic