0
タイトルの通り、高度なカスタムフィールドを使用して "Item#"という名前のフィールドを作成しましたが、get_field( "item#")関数を使用すると機能しません。私はそれがポンド記号のためだと確信しています。WordPress:高度なカスタムフィールド - フィールドには「#」文字が表示されます。
私は名前を変更する必要がありますか、この作業を行う方法はありますか?前もって感謝します! (ところで、名前を変更しますと「アイテムのNum」台無しそれはカスタム分類法と現在のデータであり、またはIDごとにそれであるすべての関連付け?)
ここでコードがあります:おそらく
<?php if (is_page(19)) { $args = array("post_type" => "products", "posts_per_page" => "-1", "product category" => "Gas Turbine Hardfacing and Welding Wire"); } query_posts($args); if (have_posts()) : while (have_posts()) : the_post(); ?>
<tr>
<td><input type="checkbox" name="products-selected" value="<?php the_id(); ?>" /></td>
<td><?php echo get_field('item #'); ?></td>
<td><?php the_title(); ?></td>
<td></td>
<td></td>
</tr>
<?php endwhile; endif; ?>