私は、=>部分に落ちている後にすべてを画面に出力するBuddyPressウィジェット(latest-articles.php)の内部にコードセクションを持っています。WordPress&BuddyPress PHPをページに出力する
$infohub_args = array(
'post_type' => array('article','post'),
'posts_per_page' => 8,
'order' => 'DESC',
'post_status' => 'publish'
);
$infohub_loop = new WP_Query($infohub_args);
この代わりに、ウィジェットコンテンツの画面に出力するものである:ここでコードセクションである( 'ポスト'、 '物品')
アレイ、 'posts_per_page' => 8は、 'order' => 'DESC'、 'post_status' => 'publish'); $ infohub_loop =新しいWP_Query($ infohub_args); */$ post_max = 8; $ all_post = array(); $ article_cat = get_terms(array( 'taxonomy' => '記事'、 'hide_empty' => true));
基本的に '=>'部分の後のすべてが画面に表示されます。
これはPHPの設定またはバージョンの問題ですか?
これはWindows 10/IIS 10マシン上にあります。そこ
私はPHPので、それがPHPの設定や、短いタグの問題(DOC http://php.net/manual/en/language.basic-syntax.phptags.php)であると思ういけないドキュメントを参照してください。 '=>' –
short_open_tagがオフになっていて、php.iniで更新されていて、それが動作するようにするには、 '?>'にする必要があります: – Waloob73
short_open_tag = On – Waloob73