Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Oct 2006
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Separating list items by "|"

    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.
    PHP Code:
    <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
    Last edited by true_friend; 11-22-2006 at 05:53 AM.

  • #2
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,827
    Thanks
    19
    Thanked 157 Times in 148 Posts
    Try this:

    PHP Code:
    <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.
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :-)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!
    ♪♪ …Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !!… ♪♪


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •