WordPress Popular Posts
No {date} for date in shortcode? (4 posts)

  1. streetrose
    Posted 2 years ago #

    Hi. Love this plugin. :)

    I am customizing my wpp in my shortcode and I notice there is no {date} but there are codes for the rest of the stats.

    Is there like a code available to pull the date for wpp?



  2. Hector Cabrera
    Plugin Author

    Posted 2 years ago #

    Hi there,

    Yes, the {date} code doesn't exists because it's part of {stats}. Use that one instead :)

  3. streetrose
    Posted 2 years ago #

    but I only want the date and the comments in my custom html. I guess I can hide the rest via css but I kinda don't want the | in the {stats}

  4. Hector Cabrera
    Plugin Author

    Posted 2 years ago #

    Ah, that's a different story. In that case, in order to remove the pipe symbol you'd need to modify the plugin since it's hardcoded. If you're feeling adventurous, this is what you have to do:

    1. Open wordpress-popular-posts.php using a text editor such as Windows' Notepad, Adobe Dreamweaver or the built-in editor in the Plugins section of WordPress.
    2. Around line 1144, you'll find // STATS. Below that is the whole code that builds the stats. Replace the pipe sign (|) with a blank space or whatever you like, and save changes.

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