WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] HTML shows up in description box (7 posts)

  1. FangedFreak
    Member
    Posted 3 years ago #

    So im using the nextgen gallery for my shopping cart on my website, and then all of a sudden html such as p and br starts showing up and it throwing everything out of place

    i read in another thread that a guy used

    <?php echo html_entity_decode($image->description) ?>

    and that sorted his problem, my question is, where do i need to put this text to fix my problem?

    Thanks!

  2. FangedFreak
    Member
    Posted 3 years ago #

    anyone? :(

  3. FangedFreak
    Member
    Posted 3 years ago #

    not to worry, i changed the html in buy_default.php and it works now

  4. Kricket
    Member
    Posted 3 years ago #

    Hi Fanged,

    I (think) I am encountering a similar issue... I want to use NextGen Gallery as my products catalogue. Each image in the gallery will have a lengthy description including <h2> and

      and <p> tags.

      It seems you found a solution to display the html formatted description on your site by adding the code
      <?php echo html_entity_decode($image->description) ?>
      but I am unclear where to add the code.

      Any help you can offer is much appreciated, thanks.

  5. Kricket
    Member
    Posted 3 years ago #

    Oops, sorry, I messed up the code on my post. It should read:

    Each image in the gallery will have a lengthy description including <h2>, <ul>, and <p> tags ...

  6. trutiff
    Member
    Posted 3 years ago #

    wait... how did you resolve this? help!

  7. dabnpits
    Member
    Posted 3 years ago #

    For those wondering, the <?php echo html_entity_decode($image->description) ?> belongs in your NextGEN template file. Simply wrap html_entity_decode() around the variable you're echoing that contains the HTML.

    Thanks to whoever came up with this solution!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.