2011-04-04 105 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值,或者编写数据库调用以直接从数据库中提取该数据。