Hi @swan1305,
Well, should be pretty similar to how you did it with the classic widget. The shortcode has a post_html parameter that’s the direct equivalent of the “Post HTML Markup” field from the widget.
For example:
[wpp post_html="<li>{title} - {date}</li>"]See Parameters and Content Tags for more details.
If you have any further questions don’t hesitate to ask, ok?
- This reply was modified 53 minutes ago by Hector Cabrera. Reason: Reworded for clarity, apparently typed this in too fast
- This reply was modified 46 minutes ago by Hector Cabrera. Reason: Included links to documentation for reference
Think I’ve sorted this now. Am using shortcode:
[wpp range=’last24hours stats_views=0 cat=’-123′ thumbnail_width=105 thumbnail_height=75 limit=6 stats_date=1 stats_date=1 stats_date_format=’j F Y’ post_html=’
{thumb} {title} <br> {date}’]
…and the custom css code:
.wpp-post-title {
font-size: 15px !important;
font-weight: 600;
}
Could you just tell me where/how to change the font size of the date please?
I’m not near a PC now but I think the date should be wrapped in a <span> tag. Check the source code of your popular posts list to confirm. If it isn’t, wrap {date} in a <span> tag (eg. <span>{date}</span>) and then you should be able to style it as you wish via CSS.
