Forums

[Plugin: WordPress Popular Posts] Template tags and attributes (3 posts)

  1. majcenoff
    Member
    Posted 2 years ago #

    In the previous versions of Popular Post you had the option to write the title of the post and the view count in one line line this

    Post title here 1 komentarjev | 1 ogledov

    or in two lines line this:

    Post title here
    1 komentarjev | 1 ogledov

    I'm using the template tags with the new version (not the widget) and I'd like to know how to have it written in two lines since I can't see the option for that anywhere (not even in your attributes list).

    My code right now looks like this:

    <?php get_mostpopular("range=monthly&limit=8&stats_views=1"); ?>

    Thank you! Great plugin otherwise! Hope you keep upgrading it for non-widget users though ...

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

  2. Héctor Cabrera
    Member
    Posted 2 years ago #

    Hi there,

    I removed that option since my plugin shouldn't really handle CSS. However, not everything is lost. You can try this:

    1. Go to wp-contents/plugins/wordpress-popular-posts/style
    2. Download wpp.css to your desktop and open it using a text editor such as Notepad or Adobe Dreamweaver.
    3. Change:

    /* Stats tag styles */
    .post-stats {
    font-size:9px;
    font-weight:bold;
    }

    ... into:

    /* Stats tag styles */
    .post-stats {
    display:block;
    font-size:9px;
    font-weight:bold;
    }

    4. Save changes, and reupload the stylesheet to your server.

    That should do it!

  3. majcenoff
    Member
    Posted 2 years ago #

    Simple but brilliant! Thank you, works like a charm!

Topic Closed

This topic has been closed to new replies.

About this Topic