WordPress.org

Forums

[Plugin: Glossary] Plugin bug: Using the "read more" button gives PHP raquo error (1 post)

  1. AmericanMonk
    Member
    Posted 5 years ago #

    WordPress likes to use the Right Angle QUOte mark (raquo) as a directional indicator (shame on them!). The Glossary plugin doesn't seem to know how to handle it. Here is the error it throws:

    Warning: DOMDocument::loadXML() [domdocument.loadxml]: Entity 'raquo' not defined in Entity, line: 8 in/home/.../html/wp-content/plugins/automatic-glossary/glossary.phpon line118

    Hopefully the next version of the plugin will support it, but until then, here's the workaround for people like me who like to use the "read more" button.

    Find the archive.php and index.php from the folder containing your theme pages (i.e., wp-content/themes/classic/).

    At approximately line 40 and 14, respectively (it may vary from theme to theme), you'll find:

    <?php the_content('<span class="more">read more &raquo;</span>') ?>

    Change the reference to the raquo to something else. I used a homemade ellipsis:

    <?php the_content('<span class="more">read more...</span>') ?>

    Save and enjoy. You shouldn't need to worry about any other references to the left or right angle quotes because the Glossary plugin only cruises through the content area of WordPress.

    Note to Glossary plugin author: millions of Europeans and a few other countries use angle quotes as their quote marks. Even though I've provided a workaround for the "read more" button, these quotes are still used often within content. Hopefully those Europeans are using CSS to mark up their quotations, but I wouldn't count on it yet. Please update your code in order to not alienate non-English sites or sites that are translated. This is a really cool plugin you've got and I'd hate to see many (granted, the minority of) users abandon it. Keep up the good work!

    http://wordpress.org/extend/plugins/automatic-glossary/

Topic Closed

This topic has been closed to new replies.

About this Topic