Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 2b9cc1d

Browse files
committed
👌 IMPROVE: Get post query to include custom fields
1 parent f698c26 commit 2b9cc1d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/api.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ export async function getPostAndMorePosts(slug, preview, previewData) {
149149
}
150150
}
151151
}
152+
acf_whatiminto {
153+
book
154+
music
155+
television
156+
}
152157
}
153158
query PostBySlug($id: ID!, $idType: PostIdType!) {
154159
post(id: $id, idType: $idType) {
@@ -169,6 +174,11 @@ export async function getPostAndMorePosts(slug, preview, previewData) {
169174
...AuthorFields
170175
}
171176
}
177+
acf_whatiminto {
178+
book
179+
music
180+
television
181+
}
172182
}
173183
}
174184
}

0 commit comments

Comments
 (0)