Forum Discussion

ferdiworks's avatar
ferdiworks
Roku Guru
2 years ago

WP Smart TV plugin and converting over to SDK Channel

This is for informational purposes only!

WP Smart TV plugin and converting over to SDK Channel

I wanted to share that some of the users still trying to use The Smart TV Plugin for their SDK channel conversions!

A developer I know was trying to use and keep his WP Smart TV plugin and JSON Feed

https://mywplink.com/wp-json/tv/roku/

The SDK packages would not accept the WP Smart TV JSON Feed link!

He tried to find the actual JSON Feed file and the link or location of the JSON Feed file in the directory structure of his hosting account!

He wrote Rob at Rovidx

I heard back from the developer of the Smart TV WP plugin.  Regarding an actual JSON file, there isn't one:

 

Hey Scott,

 

There is no JSON file.  Everything is generated using the WordPress REST API using endpoints.   Most of the examples I've seen would let you use your URL without specifying a file. 

 

Rob

 

Nonetheless, Scott, I was able to create a way to let the code think there is an actual ".json" file. 

By adding a redirect WordPress plugin and redirecting to a link for a JSON feed file name that doesn't really exist he was able to add a JSON File link to his SDK manifest to let his SDK Package template read the SDK! 

An example would be if the WordPress link used for the JSON was:

https://mywplink.com/wp-json/tv/roku/

You would add a redirect plugin and redirect to a link like this:

https://mywplink.com/wp-json/tv/roku/feed.json

It was reported as working and Scott was able to keep using his WP Smart TV Plugin to manage his SDK Channel!