...

View Full Version : Separating list items by "|"



true_friend
11-22-2006, 05:50 AM
i have a little problem, want to separate php list items by "|" so they can be distinguished one by one.
this is the code plz help me to specify | for each item. it is a wordpress blog where i want to do this in a list which is displayed inline.

<li><h2><?php _e('حالیہ'); ?> <?php _e('تحاریر'); ?></h2>
<ul>
<?php wp_get_archives('type=postbypost&limit=7'); ?>
</ul>
</li>
thnx for reading this post.
Regards
True_Friend

chump2877
11-22-2006, 12:12 PM
Try this:


<li><h2><?php _e('حالیہ'); ?> <?php _e('تحاریر'); ?></h2>
<ul>
<?php wp_get_archives('type=postbypost&limit=7&before=|&after=|'); ?>
</ul>
</li>

You might need to use the url-encoded equivalent for the "|" character....

The function "wp_get_archives" appears in template-functions-general.php in your wp-includes folder. The function can take up to 6 arguments.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum