• how can i add special character inside php? for example

    wp_get_archives(“type=monthly&format=custom&before=

    • <span>«</span>&after=
    • “)

      i want to add this bold text

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter dejanc

    (@dejanc)

    ?php wp_get_archives("type=monthly&format=custom&before=<li><span>&laquo;</span>&after=</li>"); ?>

    i mean this so i want this to show &laquo;

    This can be done by formatting the code like this:

    <?php
    
    $archive_defaults = array(
    'type' => 'monthly',
    'limit' => ,
    'format' => 'custom',
    'before' => '<li><span>&laquo;</span>',
    'after' => '</li>',
    'show_post_count' => false);
    
    wp_get_archives($archive_defaults);
    
    ?>

    I just wish they had before & after options for wp_list_pages.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘special characters inside php’ is closed to new replies.