回答編集履歴
1
get_the_author_meta に関する追記
test
CHANGED
@@ -7,3 +7,13 @@
|
|
7
7
|
<?php $aID = get_the_author_meta( 'ID' ); the_field( 'フィールド名', 'user_' . $aID ); ?>
|
8
8
|
|
9
9
|
```
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
追記
|
14
|
+
|
15
|
+
---
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
また、[get_the_author_meta](https://wpdocs.osdn.jp/%E9%96%A2%E6%95%B0%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9/get_the_author_meta) 関数をループ外で使用する場合はユーザー ID を指定する必要があるため、`get_the_author_meta( 'ID' )` という呼び出し方はループ内でのみ意図した結果を返します。
|