The MU forums have moved to WordPress.org

Add Content to Home.php (3 posts)

  1. DailyTestimony
    Member
    Posted 16 years ago #

    Maybe I am missing something here? I try to add some content to my home.php and it does not work, I added

    get_sitestats(); i've also tried echo get_sitestats(); but all it displays on the page is "array"

    I also tried adding

    eget_last_updated($display=true); and echo get_last_updated($display=true); neither will display anything

  2. andrea_r
    Moderator
    Posted 16 years ago #

    gotta add more to it:

    <?php
    $stats = get_sitestats();
    echo "There are currently <b>".$stats[ 'blogs' ]."</b> blogs and <b>".$stats[ 'users' ]."</b> users."; ?>

    got that from searching for get_sitestats. :) (Or I could have looked up what I did on my own site, but this was faster.)

  3. DailyTestimony
    Member
    Posted 16 years ago #

    I see my lack of PHP skills has caught up with me.

    Parse error: syntax error, unexpected $end in /home/public_html/wp-content/themes/AmazingGrace/home.php on line 91

    Line 91: <?php get_footer(); ?>

    I don't see what the issue is, *bangs head*

About this Topic

  • Started 16 years ago by DailyTestimony
  • Latest reply from DailyTestimony