• 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)
  • Thread Starter mptorr

    (@mptorr)

    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.