roguestar
Member
Posted 15 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! :))
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
roguestar
Member
Posted 15 years ago #
i tried this and it just shows the tites of the subdomain blogs?
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?
roguestar
Member
Posted 15 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
lunabyte
Member
Posted 15 years ago #
If you're looking for the tagline, I think it's just 'description'. It's the same with get_bloginfo.
roguestar
Member
Posted 15 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?
ekusteve
Member
Posted 15 years ago #
ekusteve
Member
Posted 15 years ago #
Okay...I don't know how to enter code here.
See here: http://www.georgetownprofessor.net/code.htm
roguestar
Member
Posted 15 years ago #
ekusteve, you are a star! :D that works brilliantly. thank you!
ekusteve
Member
Posted 15 years ago #