# Generate Direct Publisher JSON feeds with Wordpress

**URL:** <https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657>\
**Category:** Archived\
**Created:** [July 7, 2017, 3:22am UTC](https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657 "2017-07-07T03:22:14Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![rovidx\_media](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@rovidx\_media](https://forum.developer.roku.com/u/rovidx_media)\
**Post date:** [July 7, 2017, 3:22am UTC](https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657/1 "2017-07-07T03:22:14Z")

</div>

**[Download on the WordPress plugin repository](https://wordpress.org/plugins/wp-smart-tv/)&nbsp; (100% Free Plugin)**

\_\__UPDATED v1.3.1:_&nbsp;&nbsp;\_\_

- _NEW:_&nbsp; Updated Series system

- _NEW:_&nbsp; Amazon Fire App Builder JSON feeds

- _UPDATED:_&nbsp; Closed Caption Support

- _UPDATED:_&nbsp; UI to be more friendly

- _FIXED:_ Error with TV Specials not displaying in some cases

Coming in 1.4 - MAJOR update to the HTML5 player including Embedding, Better VAST support and updates to the HLS engine.

I’ve spent the last few months quietly getting this plugin together. &nbsp; It is currently awaiting approval from WordPress, but I wanted to post it here so I could get some qualified feedback.

A few notes:

1. Install the plugin like any other WordPress plugin

2. ~~It currently only works with Movies and Short Form Video content. &nbsp;I will be adding support for more in the upcoming versions.&nbsp;~~ &nbsp; **_Now works with Short-form Videos, Series and TV Specials._**

3. Instructions can be found in WP Smart TV \> Settings \> Help Documents \> View All Documentation

4. This does not work with YouTube videos, and no I can’t add support for it. &nbsp;It’s against their T.O.S.

5. Tested with Vimeo Pro and Amazon S3/CloudFront. &nbsp;Should work with most video hosting options

6. WP-Engine (and possibly other hosts) will sometimes block images from the Roku DP system. &nbsp; Enable Jetpack and turn on “Speed up images and photos” or disable “Mod Security” in Apache.

7. I’ll update this post when it is in the WordPress plugin director and I will answer any questions in this thread

---

<div class="post-metadata">

**Author:** ![ashokiptv](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@ashokiptv](https://forum.developer.roku.com/u/ashokiptv)\
**Post date:** [July 10, 2017, 3:41pm UTC](https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657/2 "2017-07-10T15:41:48Z")

</div>

Wow Nice Work. Ill test it and provide my feedback

---

<div class="post-metadata">

**Author:** ![rovidx\_media](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@rovidx\_media](https://forum.developer.roku.com/u/rovidx_media)\
**Post date:** [July 12, 2017, 1:04am UTC](https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657/3 "2017-07-12T01:04:43Z")

</div>

> “ashokiptv” wrote:  
> Wow Nice Work. Ill test it and provide my feedback  
> Thanks! I’d love to hear any feedback you have. Btw, the plugin is now officially in the WordPress plugin repository. I updated the OP with the links.

---

<div class="post-metadata">

**Author:** ![johnary](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@johnary](https://forum.developer.roku.com/u/johnary)\
**Post date:** [July 14, 2017, 8:08pm UTC](https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657/4 "2017-07-14T20:08:30Z")

</div>

Rats! I just tried to install it on my Wordpress site and I got the following error:

"Plugin could not be activated because it triggered a fatal error.

Fatal error: Can’t use function return value in write context in **/home1/NAMEOFMYSERVER/public\_html/NAMEOFMYWEBSITE/wp-content/plugins/wp-smart-tv/lib/rovidx-smart-tv-shortcodes.php** on line **117"** [/color]

I’m running version 4.8.

---

<div class="post-metadata">

**Author:** ![rovidx\_media](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@rovidx\_media](https://forum.developer.roku.com/u/rovidx_media)\
**Post date:** [July 15, 2017, 4:12am UTC](https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657/5 "2017-07-15T04:12:10Z")

</div>

> “johnary” wrote:  
> Rats! I just tried to install it on my Wordpress site and I got the following error:  
> Rats indeed! My bad, I’ll fix it for the upcoming patch that should be out before Monday.

---

<div class="post-metadata">

**Author:** ![rovidx\_media](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@rovidx\_media](https://forum.developer.roku.com/u/rovidx_media)\
**Post date:** [July 17, 2017, 8:49am UTC](https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657/6 "2017-07-17T08:49:06Z")

</div>

> “johnary” wrote:  
> Rats! I just tried to install it on my Wordpress site and I got the following error:  
> 1.1.0 should fix the issue. Let me know if you run into other ones.

---

<div class="post-metadata">

**Author:** ![johnary](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@johnary](https://forum.developer.roku.com/u/johnary)\
**Post date:** [July 18, 2017, 7:22pm UTC](https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657/7 "2017-07-18T19:22:20Z")

</div>

It seems to be working now. I will keep testing it and let you know how it goes. Thanks!

---

<div class="post-metadata">

**Author:** ![johnary](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@johnary](https://forum.developer.roku.com/u/johnary)\
**Post date:** [July 18, 2017, 7:55pm UTC](https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657/8 "2017-07-18T19:55:46Z")

</div>

I have added three movies to my channel. I looked at the JSON file it generated and checked it out with JSONLint. Everything looks good but the Feed Status on the Manage My Channels Roku Dashboard tells me that it is “Unable to download from feedURL.” Not sure if I’m doing something wrong.

---

<div class="post-metadata">

**Author:** ![rovidx\_media](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@rovidx\_media](https://forum.developer.roku.com/u/rovidx_media)\
**Post date:** [July 18, 2017, 8:50pm UTC](https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657/9 "2017-07-18T20:50:08Z")

</div>

Shoot me a pm with your Wordpress URL and I’ll take a look.

---

<div class="post-metadata">

**Author:** ![mediadisconnect](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@mediadisconnect](https://forum.developer.roku.com/u/mediadisconnect)\
**Post date:** [July 19, 2017, 12:17am UTC](https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657/10 "2017-07-19T00:17:48Z")

</div>

> “johnary” wrote:  
> I have added three movies to my channel. I looked at the JSON file it generated and checked it out with JSONLint. Everything looks good but the Feed Status on the Manage My Channels Roku Dashboard tells me that it is “Unable to download from feedURL.” Not sure if I’m doing something wrong.  
> You might have to turn off ModSecurity on your Apache setup on your webhosting account. If you check your error logs you will probably find 406 Errors. The Roku Servers don’t pass the header information when connecting to your feed so ModSecurity stops the connection. Turn it off and you should be fine.

---

<div class="post-metadata">

**Author:** ![mkammes](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@mkammes](https://forum.developer.roku.com/u/mkammes)\
**Post date:** [September 2, 2017, 5:14pm UTC](https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657/11 "2017-09-02T17:14:25Z")

</div>

Bumping this so other folks can see…this WP plugin is great!

---

<div class="post-metadata">

**Author:** ![rovidx\_media](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@rovidx\_media](https://forum.developer.roku.com/u/rovidx_media)\
**Post date:** [October 21, 2017, 10:37pm UTC](https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657/12 "2017-10-21T22:37:19Z")

</div>

Updated to 1.3.1 - See top post for more info!

PS: Our email system is currently down, so if you need help use the Support Ticket system!

---

<div class="post-metadata">

**Author:** ![mkammes](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@mkammes](https://forum.developer.roku.com/u/mkammes)\
**Post date:** [October 25, 2017, 6:48pm UTC](https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657/13 "2017-10-25T18:48:55Z")

</div>

Got a tutorial on this using WP Smart TV.

[http://5thingsseries.com/building-a-roku-channel/](http://5thingsseries.com/building-a-roku-channel/)

Hope this helps, folks!

---

<div class="post-metadata">

**Author:** ![rovidx\_media](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@rovidx\_media](https://forum.developer.roku.com/u/rovidx_media)\
**Post date:** [October 26, 2017, 4:42am UTC](https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657/14 "2017-10-26T04:42:28Z")

</div>

> “DeanLach” wrote:  
> Wow Rovidx! It’s good to see you’re back. I found your post today.
> 
> I’m an old Rovidx customer (from the Wask build a few years ago.) So my question is…I’ve built this huge XML according to the WASK feed format, and as you know this is not a typical, valid feed. It’s missing some elements (there’s no duration or length etc etc.)
> 
> 1.) Could someone suggest some software for converting an existing MRSS feed to the JSON feed that Rovidx (and Roku Direct Pub) requires?
> 
> 2.) On a semi-related note, I’m anxious to find out how to use AD ID’s like Amazon Ads, or Admob with Rovidx (and/or Roku Direct Publisher.)  
> Hey Dean!

1. Unless you have the skills to code a custom importer, there is no way to currently do this. Plus you will need all the relevant information or DP will throw errors.

2. It works with any VAST/VPAID compatible feed. Last I checked Amazon Ads where only banner/text ads, so none of those would work. I’ve tested it with DoubleClick for Publishers and it works great.

-Rob

---

<div class="post-metadata">

**Author:** ![rovidx\_media](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@rovidx\_media](https://forum.developer.roku.com/u/rovidx_media)\
**Post date:** [October 26, 2017, 4:58am UTC](https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657/15 "2017-10-26T04:58:49Z")

</div>

> “mkammes” wrote:  
> Got a tutorial on this using WP Smart TV.
> 
> [http://5thingsseries.com/building-a-roku-channel/](http://5thingsseries.com/building-a-roku-channel/)
> 
> Hope this helps, folks!  
> Another great episode Michael! Thanks so much for including WP Smart TV in the show!!!

---

<div class="post-metadata">

**Author:** ![rovidx\_media](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@rovidx\_media](https://forum.developer.roku.com/u/rovidx_media)\
**Post date:** [November 27, 2017, 5:47am UTC](https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657/16 "2017-11-27T05:47:42Z")

</div>

Update to the new version (1.3.5) which will fix that error.

---

<div class="post-metadata">

**Author:** ![rovidx\_media](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@rovidx\_media](https://forum.developer.roku.com/u/rovidx_media)\
**Post date:** [November 28, 2017, 5:56am UTC](https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657/17 "2017-11-28T05:56:23Z")

</div>

Ok, figured out where the issue was. Watch for an update in the next 24 - 48 hours.

---

<div class="post-metadata">

**Author:** ![Lifegenius](https://avatars.discourse-cdn.com/v4/letter/l/9de053/32.png) [@Lifegenius](https://forum.developer.roku.com/u/Lifegenius)\
**Post date:** [December 11, 2018, 5:52am UTC](https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657/18 "2018-12-11T05:52:49Z")

</div>

When I click on the Roku Feed I get this error.

Not Found  
The requested URL /wp-json/tv/roku/ was not found on this server.

* * *

Apache/2.4.10 (Debian) Server

I checked my permalink settings and I have them set to this:

```auto
https://lifegeni.us/index.php/%year%/%monthnum%/%day%/%postname%/

```

I also enabled WP Super Cache and I have Jetpack installed. Not sure what else I should be doing to get the feed going? Anyone have any suggestions?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![37mediagroup](https://avatars.discourse-cdn.com/v4/letter/3/f17d59/32.png) [@37mediagroup](https://forum.developer.roku.com/u/37mediagroup)\
**Post date:** [December 12, 2018, 1:25pm UTC](https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657/19 "2018-12-12T13:25:25Z")

</div>

Not exactly sure, would you mind pasting the full actual URL? The line about “The requested URL /wp-json/tv/roku/” shouldn’t the url be ending with the .json (ex: /channel.json) extension?

You could host the file at [myjson.com](http://myjson.com) if you need to push it thru while you’re figuring it out. Their urls work.

---

<div class="post-metadata">

**Author:** ![Lifegenius](https://avatars.discourse-cdn.com/v4/letter/l/9de053/32.png) [@Lifegenius](https://forum.developer.roku.com/u/Lifegenius)\
**Post date:** [December 12, 2018, 4:42pm UTC](https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657/20 "2018-12-12T16:42:43Z")

</div>

Yeah it’s [https://www.lifegeni.us/wp-json/tv/roku/](https://www.lifegeni.us/wp-json/tv/roku/)  
That’s the link I get from the plug-in and when I hit download json I get a file not found error. If it helps, I’m.hosting my WordPress site on Google compute.

[Next page](https://forum.developer.roku.com/t/generate-direct-publisher-json-feeds-with-wordpress/5657.md?page=2)
