WordPress.org

Forums

Customizing WordPress Related Posts in Sidebar (2 posts)

  1. Archit
    Member
    Posted 6 years ago #

    I want to embed the Related Posts code in my blog's sidebar but the links in my sidebar are in <li> tags. How do I customize the related posts code (<?php wp_related_posts(); ?>) to do that?

    Example of what I want:

    <h3>Related Posts</h3>
    <ul>
    <li>Related Post 1</li>
    <li>Related Post 2</li>
    </ul>
  2. blogsdna
    Member
    Posted 6 years ago #

    which related post plugin you are using ?? most of all related posts plugin supports custom css just check in your related post plugin options

Topic Closed

This topic has been closed to new replies.

About this Topic