WordPress Popular Posts
[Plugin: WordPress Popular Posts] proposed new attribute for shortcode: date (1 post)

  1. NomikOS
    Posted 5 years ago #

    I use this plugin as an index of articles: http://nomikos.info/indice-de-articulos. Works wonderful with those thumbnails! But always I need make some changes to order by date.

    # into:
    function get_popular_posts($instance, $echo = true) {		
    # add:
    case 'date':
    $sortby = 'post_date';
    # into:
    function wpp_shortcode($atts = NULL, $content = NULL) {
    # add:
    $order_by_values = array("comments", "views", "avg", "date");

    I think that is a cool new feature for next versions.


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

  • RSS feed for this topic
  • Started 5 years ago by NomikOS
  • This topic is not a support question
  • WordPress version: 3.0