WordPress Popular Posts
[Plugin: WordPress Popular Posts] WPP_START - DIV with CLASS not working (2 posts)

  1. mptorr
    Posted 5 years ago #

    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?

  2. mptorr
    Posted 5 years ago #

    OK, looks like you need to put a single quote around the html as in

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Popular Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic