Title: Php help wanted adding tag after list items
Last modified: August 19, 2016

---

# Php help wanted adding tag after list items

 *  [dustyseb](https://wordpress.org/support/users/dustyseb/)
 * (@dustyseb)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/php-help-wanted-adding-tag-after-list-items/)
 * Hi, I need:
 *     ```
       <li><a href="#">Item One</a><div class="navbg"></div></li>
       <li><a href="#">Item Two</a><div class="navbg"></div></li>
       <li><a href="#">Item Three</a><div class="navbg"></div></li>
       ```
   
 * And have tried this:
 *     ```
       <ul id="minitabs">
       				<?php wp_list_pages('exclude=91&sort_column=menu_order&title_li='); echo "<div class='navbg'></div>"; ?>
                   </ul>
       ```
   
 * But naturally it only echoes a single <div class=”navbg”>.
 * For each? What’s the syntax?

Viewing 1 replies (of 1 total)

 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/php-help-wanted-adding-tag-after-list-items/#post-1007188)
 * Consider using a plugin like this one that allows you to do what you want
    [http://www.technokinetics.com/plugins/page-lists-plus/](http://www.technokinetics.com/plugins/page-lists-plus/)
 * Also, putting a DIV inside an LI is invalid HTML as DIV is a block item. SPAN
   is a better choice there.

Viewing 1 replies (of 1 total)

The topic ‘Php help wanted adding tag after list items’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/php-help-wanted-adding-tag-after-list-items/#post-1007188)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
