WordPress.org

Ready to get started?Download WordPress

Forums

Widget problem (3 posts)

  1. chaski
    Member
    Posted 5 years ago #

    We are using a widget-driven sidebar on a site which holds most of the text in the MySQL database.

    The following line of text is not parsing correctly, which breaks the sidebar in IE, and gives an incorrect href in other browsers:

    <p class="i_rss"><strong ><a href="<?php bloginfo('rss2_url'); ?>">Subscribe via Rss</a></strong></p>

    ---------------------------------------------------
    When looking at the source code, the PHP statement comes right through, rather than being processed on the server:

    <p class="i_rss"><strong ><a href='<?php bloginfo('rss2_url'); ?>'>Subscribe via Rss</a></strong></p>

    I have tried all kinds of jimmying with the code, replacing the double with single quotes, changing their position, etc. Nothing seems to work.

  2. chaski
    Member
    Posted 5 years ago #

    OK, some more oddness: If I do into PHPMyAdmin and change so much as the link from:
    <a href="<?php bloginfo('rss2_url'); ?>">Subscribe via RSS</a>

    to: <a href="anyLink.php">Subscribe via RSS</a>

    Nothing on the sidebar works after that! This makes absolutely no sense to me. Should I get out of PHPMyAdmin and work directly through the WordPress admin section?

  3. jlg371
    Member
    Posted 4 years ago #

    It seems that nobody in the wordpress world is knowledgeable enough to answer widget questions. After searching these forums for 2 days I have come to this conclusion. I guess all of these experts are not really experts at all.

Topic Closed

This topic has been closed to new replies.

About this Topic