Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ウィジェット内の現在の投稿から複数のフィールドを呼び出すにはどうすればよいですか? PHP を許可するように functions.php を調整済みです。
<?php global $wp_query; if(is_object($wp_query->queried_object) && $wp_query->queried_object->ID) { echo get_post_meta($wp_query->queried_object->ID, 'customfieldname', true); } ?>