ryelle / Foxhound

A text-focused blog theme for WordPress (in React)
https://themes.redradar.net/foxhound
350 stars 39 forks source link

Jetpack compat? #21

Closed ryelle closed 7 years ago

ryelle commented 7 years ago

I ❤ Jetpack and would like to keep likes, galleries, and stats working.

ryelle commented 7 years ago

Also really needs contact form styling. And..... functionality. It totally failed to submit - path is incorrect maybe?

ryelle commented 7 years ago

wp_nonce_field is used in the contact form to set a referrer, which is used to redirect after submission-- unfortunately this is pulled from the API, and is set to /wp-json/wp/v2/pages?_embed=true&filter%5Bpagename%5D=[pagename]. This is only used when a user is logged in, otherwise it redirects to the contact page (albeit with no success message). Acceptable functionality (for now).

ryelle commented 7 years ago

Stats -- can I reload the pixel via JS?

jeherve commented 7 years ago

I recently added the Related Posts to the REST API Post response. The patch will ship with the next version of Jetpack. https://github.com/Automattic/jetpack/pull/3425

Here is an example of the elements added to each post: https://jeremy.hu/wp-json/wp/v2/posts/18066

I think it'd be great to add those to your theme :)

big_eyes_cat