Customizing WordPress Related Posts in Sidebar (1 post)

  1. Archit
    Posted 7 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>
    <li>Related Post 1</li>
    <li>Related Post 2</li>

Topic Closed

This topic has been closed to new replies.

About this Topic