WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Apostrophe in the sidebar (3 posts)

  1. makemead
    Member
    Posted 6 years ago #

    OK, so how do I get an apostrophe to show in my sidebar?

    <?php wp_list_pages("exclude=17,18,22,23,24,25&sort_column=menu_order&title_li=<h2>Mr. H's Classes</h2>",'ID' ); ?>

    It shows as Mr. H\'s Classes.

    I'm sure it has to do with magic quotes being enabled on my server. Is there a way to stop it in this instance?

  2. whooami
    Member
    Posted 6 years ago #

    hmm.

    using your code, I dont see that:

    http://you-get.onewish.org.uk/wtf.php

    odd.

    oh wait -- my example is running 2.3.x, never mind

  3. makemead
    Member
    Posted 6 years ago #

    Fixed it by adding

    $output = stripslashes($output);

    after line 314
    $output = apply_filters('wp_list_pages', $output);
    in post-template.php

Topic Closed

This topic has been closed to new replies.

About this Topic