Forum Replies Created

Viewing 1 replies (of 1 total)
  • One thing I noticed and am hoping to find a solution now, is the above code examples work great for the widget, however direct access through shortcode or wpp_get_mostpopular. Even if you pass posttype along as a param it does not get picked by wpp_shortcode. I added the line
    'posttype' => empty($posttype) ? "all" : $posttype, to the $shortcode_ops, however $posttype is never defined. I assumed

    extract( shortcode_atts( array(
                    'header' => '',
                    'limit' => 10,
                    'range' => 'daily',
                    'order_by' => 'comments',
                    'pages' => true,
                    'title_length' => 0,
                    'excerpt_length' => 0,
                    'excerpt_format' => 0,
                    'cats_to_exclude' => '',
                    'thumbnail_width' => 0,
                    'thumbnail_height' => 0,
                    'thumbnail_selection' => 'wppgenerated',
                    'rating' => false,
                    'stats_comments' => true,
                    'stats_views' => false,
                    'stats_author' => false,
                    'stats_date' => false,
                    'stats_date_format' => 'F j, Y',
                    'wpp_start' => '<ul>',
                    'wpp_end' => '</ul>',
                    'post_start' => '<li>',
                    'post_end' => '</li>',
                    'header_start' => '<h2>',
                    'header_end' => '</h2>',
                    'do_pattern' => false,
                    'pattern_form' => '{image} {title}: {summary} {stats}'
                ), $atts ) );

    would pre-define it however it does not.

Viewing 1 replies (of 1 total)