Title: Shortcode Changes
Last modified: June 26, 2023

---

# Shortcode Changes

 *  Resolved [Swan1305](https://wordpress.org/support/users/swan1305/)
 * (@swan1305)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/shortcode-changes-2/)
 * Hello, disappointed to see you aren’t supporting the classic widget anymore –
   I’m trying to recreate my layout in a shortcode as advised. I need to remove 
   the “posted on” text, can you advise what the correct way of doing that with 
   a shortcode would be please? Or failing that custom css?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/shortcode-changes-2/#post-16848367)
 * Hi [@swan1305](https://wordpress.org/support/users/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:
 *     ```wp-block-code
       [wpp post_html='<li>{title} - {date}</li>']
       ```
   
 * See [Parameters](https://github.com/cabrerahector/wordpress-popular-posts/wiki/2.-Template-tags#parameters)
   and [Content Tags](https://github.com/cabrerahector/wordpress-popular-posts/wiki/2.-Template-tags#content-tags)
   for more details.
 * If you have any further questions don’t hesitate to ask, ok?
    -  This reply was modified 2 years, 11 months ago by [Hector Cabrera](https://wordpress.org/support/users/hcabrera/).
      Reason: Reworded for clarity, apparently typed this in too fast
    -  This reply was modified 2 years, 11 months ago by [Hector Cabrera](https://wordpress.org/support/users/hcabrera/).
      Reason: Included links to documentation for reference
 *  Thread Starter [Swan1305](https://wordpress.org/support/users/swan1305/)
 * (@swan1305)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/shortcode-changes-2/#post-16848397)
 * 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?
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/shortcode-changes-2/#post-16848412)
 * 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.
 *  Thread Starter [Swan1305](https://wordpress.org/support/users/swan1305/)
 * (@swan1305)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/shortcode-changes-2/#post-16848452)
 * Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Shortcode Changes’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Swan1305](https://wordpress.org/support/users/swan1305/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/shortcode-changes-2/#post-16848452)
 * Status: resolved