I'm using the Featured Posts plugin from wmpudev.org.
Unfortunately instead of displaying the blog name is displays ">>>".
echo $blog_name . '>>>';
Is it possible to replace ">>>" with the actual name of the blog.
I'm using the Featured Posts plugin from wmpudev.org.
Unfortunately instead of displaying the blog name is displays ">>>".
echo $blog_name . '>>>';
Is it possible to replace ">>>" with the actual name of the blog.
If you're featuring one blog at a time, then I'd instead use something more familiar with the usual WP template tags. Plunk something like this straight into your template.
switch_to_blog($id);
// The usual WP Loop stuff commonly found in an index.php of a theme
// http://codex.wordpress.org/The_Loop
echo get_blog_option($id, 'blogname');
restore_current_blog();
The Featured Post plugin pulls a random post from a random blog and displays it where you want - I'm not sure if what you're suggesting can do that?
How old is the plugin? And which one? (please provide a link to the exact plugin)
It's not too old. The link is here: http://wpmudevorg.wordpress.com/project/Featured-Posts
In terms of the codebase, yes it is old. :) It quite likely does not work on the latest version of MU.
It works fine for me on 2.7.1. I just what the ">>>>" replaced with the actual blog name.
Hi GhostPool,
I had the same problem as you, but there's an easy fix.
Go to line 33 of featured-posts.php and replace
$blog_name = $wpdb->get_var("SELECT option_value FROM $blog_options_table WHERE option_name = blogname");
with
$blog_name = get_blog_option($featured_blogs[$random], 'blogname');
Problem solved.
-sk