Wordpress node returns only published posts

Hey, I can’t get the WordPress node to return any posts that are not published yet. Is that a bug?

@bartv when you use this flow you don’t get all the posts?
Flow - Get all posts from WordPress - https://n8n.io/workflows/546

Can you please share your flow.

Good morning both :wave:

I quickly looked into this and could confirm the behaviour. It seems the Wordpress API only returns posts with a publish status (unless another other status is specified).

I’ll try adding an optional field for the status and see if that fixes the behaviour. I’ll be back!


Doing an authenticated call on /wp-json/wp/v2/posts?status=pending will return those posts - I’m using an HTTP node as a workaround for now.

PS: if you’re looking at the wordpress node anyway, the ‘filter by author’ option throws an error when you execute it.

1 Like

Yes, that is pretty what I am currently trying to implement. This should also solve your feature request:

Whoops sorry, I mixed that up yes :sweat:

Okay here we go:

Will let you know once it’s released.


Pew pew! Thanks :slight_smile:

Got released with [email protected]

1 Like