-1
どのようにドロップダウンワードプレス代謝物を選択して保存するには?どのように選択ドロップダウンワードプレス代謝産物を保存する
のオプションでは、私のカスタムポストタイプのループがあります。
<select name="music[artists]" class="skant-select" id="artists" style="width: 90%;" multiple="multiple">
<?php
$artists_meta_box_args = array(
'post_type' => array('music_artist'),
//'posts_per_page' => 20,
);
$artists_meta_box = new WP_Query($artists_meta_box_args);
if ($artists_meta_box->have_posts()):
while ($artists_meta_box->have_posts()):$artists_meta_box->the_post();
global $post;
$artistFirstname = get_post_meta($post->ID, 'artist_firstname', true);
$artistLastname = get_post_meta($post->ID, 'artist_lastname', true);
?>
<option value="<?php echo $artistFirstname . ' ' . $artistLastname; ?>"><?php echo $artistFirstname . ' ' . $artistLastname; ?></option>
<?php
endwhile;
endif;
?>
</select>
どのようにドロップダウンを表示していますか?あなたはもっと多くのコードを表示していますか?どのようにオプションを保存したいですか? –
更新してウェブサイトで使用した後に保存オプションを選択したい –