How to preview the searching post (Plural post) #2470
-
What problem does this address?I have a ACF field with CPT UI name shop (example) What is your proposed solution?I want the shops query(Plural) can add asPreview function, when asPreview is true, it will return all the posts including drafts or pending review posts. just like the single post query. What alternatives have you considered?No response Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @stephenwongcandr . You can use the E.g. shops( where: { stati: [ PENDING, DRAFT, PUBLISH ] } ) {
nodes {
databaseId
status
}
} |
Beta Was this translation helpful? Give feedback.
Hey @stephenwongcandr .
You can use the
status
orstatii
where arg to filter connections by the post status.E.g.