0
我有一个与phpbb3集成的wordpress博客。我想在我的WordPress博客索引页面中显示php bb3 forum
的列表。 但我无法找到任何帮助,请帮助我,如果有人。我会非常感谢你。 在我的wordpress index page
它只显示标题phpbb3
fourm标题,但我也需要描述。如何在我的WordPress博客中获取phpbb3 fourm名称和描述
我使用这个功能在我的WordPress博客显示forum topics
文件:定制function.php
function widget_wpulatestphpbbtopics_custom($args)
{
if(!is_admin())
{
//extract($args);
$options = get_option('widget_wpulatestphpbbtopics');
$title = $options['title'];
//$maxEntries = $options['max'];
//generate the widget output
// wpu_template_funcs.php MUST be available!
if (!function_exists('wpu_latest_phpbb_topics')) return false;
echo $before_widget;
echo"<h1>";echo $before_title . $title . $after_title;echo"</h1>";
echo '<ul class="wpulatesttopics">';
wpu_latest_phpbb_topics('limit='.$maxEntries);
echo '</ul>' . $after_widget;
}
}
function limit_front_page()
{
global $query_string;
if (is_home())
{
query_posts($query_string.'meta_key=featured_image');
widget_wpulatestphpbbtopics_custom($args);
}
}
add_action('thesis_hook_before_content', 'limit_front_page');