Requests to wp.com

Hi,
I am using wordpress.com with frontity but I have some error requests.
My source of the configuration file contains:

"api": "https://public-api.wordpress.com/rest/v1.1/sites/goiblas.wordpress.com/",
"isWPCom": true

This configuration tries to request the post from https://public-api.wordpress.com/rest/v1.1/sites/goiblas.wordpress.com/wp/v2/posts?page=1&_embed=true

Do I have to make some other change in my theme?

The frontity version is:
“frontity”: “^ 1.1.0”,
“@ frontity / core”: “^ 1.1.2”,
“@ frontity / wp-source”: “^ 1.1.5”,
“@ frontity / tiny-router”: “^ 1.0.9”,
“@ frontity / html2react”: “^ 1.1.5”,
“@ frontity / mars-theme”: “./packages/mars-theme”

Thx

@david could you please take a look at this?

Oh, wait, that’s the old API (v1.1).

The new one (v2) should be:
https://public-api.wordpress.com/wp/v2/sites/goiblas.wordpress.com

More info here:
https://docs.frontity.org/api-reference-1/wordpress-source#state-source-api-required

By the way, isWPCom is not needed anymore :slight_smile:

Perfect! thx

1 Like