Wrapping text around links
-
Hi all,
I tried yesterday to figure this out. In fact I spent 2 hours on it.
When outputting links:
<?php if($post->post_parent) $children = wp_list_pages('title_li=&child_of='.$post->post_parent.'&echo=0'); else $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0'); if ($children) { ?> <ul> <?php echo $children; ?> </ul> <?php } ?>
I want to add divs around the individual links:
<div style = "1"><div style = "a"><ul><li>link1</li></ul></div></div> <div style = "2"><div style = "b"><ul><li>link2</li></ul></div></div> <div style = "3"><div style = "c"><ul><li>link3</li></ul></div></div>
How the diddly do I do this. *wipes sweat from forehead*
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Wrapping text around links’ is closed to new replies.