The MU forums have moved to WordPress.org

home.php how to add descriptions? (11 posts)

  1. roguestar
    Member
    Posted 16 years ago #

    i have WP MU set up and have the home.php running on the root directory, i like the way that it shows the latest updated blogs listed but i would aslo like to add a Description (the bit that shows under the header title on each blog), how can i do this?
    also is it also possible to show the latest few posts titles as well?
    (please bear in mind on your replies that i cannot program! :))

  2. drmiketemp
    Member
    Posted 16 years ago #

    Change line 24 of your theme's home.php file to be the following:

    ?><li><a title="<?php echo get_blog_option( $details[ 'blog_id' ], 'blogdescription' ) ?>" href="http://<?php echo $details[ 'domain' ] . $details[ 'path' ] ?>"><?php echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?></a></li><?php

    Hope this helps,
    -drmike

  3. roguestar
    Member
    Posted 16 years ago #

    i tried this and it just shows the tites of the subdomain blogs?

  4. drmiketemp
    Member
    Posted 16 years ago #

    Is it alt or title? I can never remember which it is. May want to try alt instead of title in there.

    Can you please provide a URL so we can see what is occuring?

  5. roguestar
    Member
    Posted 16 years ago #

    at the moment it just lists all the subdomain blog titles, what i would like home.php to show is something like ...

    >blog title
    >blog description
    >>newest post title
    >>second newest post title
    >>third newest post title

    ...for each blog

    i can do without the post titles if its too hard to have them showing but i'd really like to see the discripton showing on the home if possible

  6. lunabyte
    Member
    Posted 16 years ago #

    If you're looking for the tagline, I think it's just 'description'. It's the same with get_bloginfo.

  7. roguestar
    Member
    Posted 16 years ago #

    ta, i've had a play around but i cannot get results (the fact that i actually cannot program doesnt help) what would i have to put into the PHP page to make it work?

  8. ekusteve
    Member
    Posted 16 years ago #


  9. ekusteve
    Member
    Posted 16 years ago #

    Okay...I don't know how to enter code here.

    See here: http://www.georgetownprofessor.net/code.htm

  10. roguestar
    Member
    Posted 16 years ago #

    ekusteve, you are a star! :D that works brilliantly. thank you!

  11. ekusteve
    Member
    Posted 16 years ago #

    You're welcome.

    Steve

About this Topic

  • Started 16 years ago by roguestar
  • Latest reply from ekusteve