Viewing 1 replies (of 1 total)
  • Plugin Contributor yousan

    (@hogetan)

    ちょっと無理やりですが、なんとか配列で取り出すことができました。

    $scf_post_id = 76; // SCFが定義されたカスタム投稿タイプのpost_id
    $groups  = get_post_meta( $scf_post_id, 'smart-cf-setting', true );
    $choices = SCF::choices_eol_to_array( $groups[0]['fields'][0]['choices'] );
    

    実際に使う場合にはget_post_metaで取り出した内容を安全にする必要がありますね。

    どなたかのご参考までに。

Viewing 1 replies (of 1 total)
  • The topic ‘選択肢の一覧を取得することはできるでしょうか?’ is closed to new replies.