• When I activate the plugin and view my site I get the following error:

    Parse error: parse error, unexpected T_VARIABLE in /home/mjongolf/www/www/wp-content/plugins/recent-posts.php on line 11

    Line 11 reads:

    function get_recent_posts($no_posts = 5, $before = '<li>', $after = '</li>', $show_pass_post = false, $skip_posts = 0, $show_excerpts = false) {

    Can anyone tell me the solution?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mjongolf

    (@mjongolf)

    Let me try again – line 11 reads:

    function get_recent_posts($no_posts = 5,
     $before = '<li>', $after = '</li>',
     $show_pass_post = false, $skip_posts = 0,
     $show_excerpts = false) {

    Thread Starter mjongolf

    (@mjongolf)

    bump

    Thread Starter mjongolf

    (@mjongolf)

    Just in case no one in the know has seen this post, I will bump it up again and pray.

    Ensure that there are no leading or trailing spaces in the recent-posts.php file before the <?php and ending ?>.

    Regards

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

The topic ‘Recent-Posts plugin’ is closed to new replies.