• Resolved Drew Baker

    (@dbaker)


    Hello,
    I’m trying to use this function to add a class to the UL that is returned from your plugin. Unfortunately, it doesn’t add the class into the code.

    <?php if (function_exists("get_mostpopular")) get_mostpopular("range=weekly&order_by=views&limit=2&pages=0&stats_comments=0&wpp_start='<ul class='test'>'&wpp_end='</ul>'"); ?>

    And it returns just this:

    <ul>
    <li>example1</li>
    <li>example2</li>
    </ul>

    When it should return this:

    <ul class='test'>
    <li>example1</li>
    <li>example2</li>
    </ul>

    Any suggestions on a fix? An easy one would be to able to pass an empty value, but unfortunately it doesn’t allow that either.

    Thanks,
    Drew

    http://wordpress.org/extend/plugins/wordpress-popular-posts/

Viewing 1 replies (of 1 total)
  • Thread Starter Drew Baker

    (@dbaker)

    Never mind, I found the answer in another thread. You use this attribute :

    wpp_start='<ul class=\"test\">'

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WordPress Popular Posts] Add class to UL using wpp_start= ?’ is closed to new replies.