回答編集履歴

1

修正

2020/10/16 09:29

投稿

Takumiboo
Takumiboo

スコア2534

test CHANGED
@@ -12,7 +12,9 @@
12
12
 
13
13
 
14
14
 
15
+ if (metadata_exists( 'post', $post->ID, '1bb'));
16
+
15
- if (!metadata_exists( 'post', $post->ID, '1bb') && metadata_exists( 'post', $post->ID, '1cc') && metadata_exists( 'post', $post->ID, '1bb1')) {
17
+ elseif ( metadata_exists( 'post', $post->ID, '1cc') && metadata_exists( 'post', $post->ID, '1bb1')) {
16
18
 
17
19
  $shopname = get_post_meta( $post->ID, '1bb1', true );
18
20