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