2011-04-04 28 views
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'); 

回答

0

隨着你使用它看起來並不像小部件$ options數組將永遠返回標題或最大帖子以外的任何內容。我認爲您需要更新您的小部件以拉動FORUM_DESC值,或者編寫數據庫調用以直接從數據庫中提取該數據。

相關問題