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');