0

phpbb3 と統合された wordpress ブログを持っていphp bb3 forumます。自分の wordpress ブログのインデックス ページに のリストを表示したいと考えています。しかし、私は助けを見つけることができません.誰かが私を助けてください.私はあなたにとても感謝しています. 私のwordpress index page場合、4つのタイトルのタイトルしか表示されていませんphpbb3が、説明も必要です。

この関数を使用forum topicsして、wordpress ブログに表示しています

ファイル:custom-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');  
4

1 に答える 1

0

使用しているウィジェットでは、$options配列がタイトルまたは最大投稿以外のものを返すようには見えません。FORUM_DESC値もプルするようにウィジェットを更新するか、データベースから直接プルするDB呼び出しを作成する必要があると思います。

于 2011-04-13T19:45:04.303 に答える