You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to get all image posts associated with a list blogs (just personal archive reasons), and I'm running into an issue with the Neue Post Format / NPF. If I'm understanding the documentation correctly, NPF should return what's effectively a JSON layout of the post, and NPF posts can be identified by having is_blocks_post_format as True.
The post I'm having issues with is post id 186412013514. It's marked as a text type post, NPF, and contains a single image.
The following is the line to find the post as generated by the API console:
Firstly, this post probably shouldn't be in the response I'm getting because I'm filtering for only photo type files and it's marked as text.
Secondly, and more importantly, the content block seems to be raw HTML. I thought it was just a fluke until I opened up another random photos-like post to the same result. Adding filter=... to the function call either leaves it unchanged or cuts all of the non-text content from the post.
My understanding is that it should look more like this:
(Low-effort creation based on the NPF API examples.)
I'm attempting to get all image posts associated with a list blogs (just personal archive reasons), and I'm running into an issue with the Neue Post Format / NPF. If I'm understanding the documentation correctly, NPF should return what's effectively a JSON layout of the post, and NPF posts can be identified by having
is_blocks_post_format
as True.The post I'm having issues with is post id 186412013514. It's marked as a
text
type post, NPF, and contains a single image.The following is the line to find the post as generated by the API console:
And the response...
Firstly, this post probably shouldn't be in the response I'm getting because I'm filtering for only
photo
type files and it's marked astext
.Secondly, and more importantly, the
content
block seems to be raw HTML. I thought it was just a fluke until I opened up another random photos-like post to the same result. Addingfilter=...
to the function call either leaves it unchanged or cuts all of the non-text content from the post.My understanding is that it should look more like this:
(Low-effort creation based on the NPF API examples.)
Am I misunderstanding the API?
(Oh, also the
npf=true
flag doesn't seem to work for theclient.posts()
function.)The text was updated successfully, but these errors were encountered: