How to show on the main page? I saw this on http://adadaa.com/ For example I know function <?php get_most_active_blogs(); ?>
Result:
How to show
And for Updated Blogs - Active Blogs ?
How to show on the main page? I saw this on http://adadaa.com/ For example I know function <?php get_most_active_blogs(); ?>
Result:
How to show
And for Updated Blogs - Active Blogs ?
backticks
I use <?php get_most_active_blogs(); ?> as result
How to show
As here http://adadaa.com/ > Active Blogs backticks
Visit back & I'll post the code in 5 days
This is how i do it:
<?php
$most_active = get_most_active_blogs( 10, false );
foreach( $most_active as $details ) {
?> "><?php echo $details['postcount'] . " "; echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?>
<?php
$most_active = get_most_active_blogs( 10, false );
?>
<?php foreach( $most_active as $details ) {
?>"><?php echo $details['postcount'] . " "; echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?>
<?php
}
?>
[code]<?php
$most_active = get_most_active_blogs( 10, false );
?>
<?php foreach( $most_active as $details ) {
?>"><?php echo $details['postcount'] . " "; echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?>
<?php
}
?>[/code]
hehe okay i don't know have the code tags works, but hope you can see it
use backticks around code. This thing: '
It's on the upper left of your keyboard, right under the Esc key.
<?php
$most_active = get_most_active_blogs( 10, false );
?>
<?php foreach( $most_active as $details ) {
?>"><?php echo $details['postcount'] . " "; echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?>
<?php
}
?>
Something Wrong?
kprimdal
use backticks
<?php
$most_active = get_most_active_blogs( 10, false );
?>
<?php foreach( $most_active as $details ) {
?><a href="http://<?php echo $details[ 'domain' ] . $details[ 'path' ] ?>"><?php echo $details['postcount'] . " "; echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?></a><br /> <?php
}
?>
a little different version ;)
<?php
$most_active = get_most_active_blogs( 10, false );
?>
<?php foreach( $most_active as $details ) {
echo $details['postcount'] . " ";
?>
<a href="http://<?php echo $details[ 'domain' ] . $details[ 'path' ] ?>">
<?php
echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?></a><br />
<?php
}
?>
Hi
I use this code
<h3>Most active blogs:</h3>
<ul>
<?php
$most_active = get_most_active_blogs( 10, false );
?>
<?php foreach( $most_active as $details ) {
?><li><a target="_blank" href="http://<?php echo $details[ 'domain' ] . $details[ 'path' ] ?>"><?php echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?></a> [<?php echo $details['postcount'] . " "; ?>]</li><?php
}
?>
</ul>
but it takes additional 173! queries
How to optimize it to a minimum?