The first step is linking to a wordpress theme plugin, which will not work in OJS.
I would suggest that you first install the REST plugin in OJS, make sure it’s working and then trying to build your wordpress theme.
The REST plugin is old, but at a glance I did not see any problem with it. Try installing that and let us know if any error is happening, and I can try to help fixing it.