• I tried to add [wpp] at the bottom of a page, after some other content, but the code gets inserted at the top (after the page title). Any ideas on how to get the wpp list display AFTER the other content I would like to have on the same page?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You just found a bug!

    Open wordpress-popular-posts.php using an editor such as Notepad or Dreamweaver, and change this code (around line 1021):

    echo “<!– WordPress Popular Posts Plugin v”. $this->version .” [SC] [“.$shortcode_ops[‘range’].”] –>”.”\n”;

    // is there a title defined by user?
    if (!empty($header) && !empty($header_start) && !empty($header_end)) {
    echo $header_start . $header . $header_end;
    }

    // print popular posts list
    echo $this->get_popular_posts($shortcode_ops, false);

    echo “<!– End WordPress Popular Posts Plugin v”. $this->version .” –>”.”\n”;

    … into this:

    $shortcode_content = “”;

    $shortcode_content .= “<!– WordPress Popular Posts Plugin v”. $this->version .” [SC] [“.$shortcode_ops[‘range’].”] –>”.”\n”;

    // is there a title defined by user?
    if (!empty($header) && !empty($header_start) && !empty($header_end)) {
    $shortcode_content .= $header_start . $header . $header_end;
    }

    // print popular posts list
    $shortcode_content .= $this->get_popular_posts($shortcode_ops, false);

    $shortcode_content .= “<!– End WordPress Popular Posts Plugin v”. $this->version .” –>”.”\n”;

    return $shortcode_content;

    That should fix it for the moment. I’ll include this patch on the next release of WordPress Popular Posts.

    Thread Starter Krokkodriljo

    (@krokkodriljo)

    Ikki24,

    Thanks for your fast response. It worked fine.

    Keep up the good work with your excellent plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WordPress Popular Posts] WPP at the bottom of a page’ is closed to new replies.