WordPress.org

Ready to get started?Download WordPress

Forums

Customizing WordPress Related Posts in Sidebar (1 post)

  1. Archit
    Member
    Posted 5 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>

Topic Closed

This topic has been closed to new replies.

About this Topic