WordPress.org

Support

Support » Plugins and Hacks » WordPress Popular Posts » [Plugin: WordPress Popular Posts] WPP_START – DIV with CLASS not working

[Plugin: WordPress Popular Posts] WPP_START – DIV with CLASS not working

  • Here is my code:

    <?php if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular("wpp_start=<div class="wpp-tdt">&wpp_end=</div>"); ?>

    which doesn’t work (widget goes blank).

    If I add escape chars (because of the quotes for class), the widget has a DIV but with no class (ie, <div>…</div>).

    <?php if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular("wpp_start=<div class=\"wpp-tdt\">&wpp_end=</div>"); ?>

    Any ideas how to code this and make the DIV show a class?

Viewing 1 replies (of 1 total)
  • OK, looks like you need to put a single quote around the html as in

    wpp_get_mostpopular("wpp_start='<div class=\"wpp-tdt\">'....

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WordPress Popular Posts] WPP_START – DIV with CLASS not working’ is closed to new replies.
Skip to toolbar