
MacのVSCode(VisualStudioCode)のClineでOllamaが動作しない時の解決備忘録
2024.11.13

WordPressでメディアのサムネイルを一括で再生成するプラグイン『Regenerate Thumbnails』
2023.09.23

MacでOpen Interpreterをローカルで動かした際に、CodeLlama Modelがダウンロードされる場所
2023.09.09
Category 雑記 Update 2009.07.27
ちょっと一瞬戸惑ったので覚え書き
WordPressのプラグインで携帯ブラウザの表示に対応させる
Ktai Styleというプラグインを使用させていただいているのですが、
カスタムフィールドをどう使えばいいんだ?
っと一瞬戸惑ったので、方法を書いておきます。
ループの中で使用します!
<?php $post = get_post($post_id); ?> <?php if ( get_post_meta($post->ID,'ここにカスタムフィールドのID',true) ): ?><?php echo get_post_meta($post->ID, ’ここにカスタムフィールドのID', true); ?><?php endif; ?>
という方法です
ifで括っているのはカスタムフィールドが未入力の時は表示をOffにするという形にしています。
では!