I can’t seem to show code in a code block to show you examples
Hi, we’re running Newspaper on nbnnews.com.au.
and we’re using Newspaper v9.5.
We’re trying to upgrade to the latest version, but we’ve hit a major stumbling block.
Here’s the problem, when we have a video and enter its file name in a custom the video player appears.
We use custom fields to populate required fields to display a video player and poster frame.
1) Enter a file name
2) Enter a image name
SO basically our journalist enters a video file name and image file name and the video appears.

Please see here for reference:-
https://www.nbnnews.com.au/2023/05/03/father-and-son-avoid-jailtime-after-defrauding-mining-company/
Using an if/else php call, we either display a video player or not by using CSS classes.
Once the video file name is entered the “else” bit kicks in and shows the video player.
We’re using the loop-single.php file and sitting the code block just under the
And on version 9.50 this works.
On v12 I can’t get this to work in a child theme or hacking the main theme.
I can’t insert any code (php, html) anywhere and have it render.
I’m not a programmer, but through looking at tutorials and trial and error I got it to work.
And it’s been ok for years.
This has become critical to fix because using v9.5 and updating to php8, it’s throwing up a cross-scripting error.
Here’s the code:-
Any help would be greatly appreciated. I love this theme, but I might have to try other theme to make this work. And I really don’t want to do that.
Hi Anamaria,
Thank you for sending that through ?
I test it out to see if it solves my problem.
Cheers, Matt
Hi Bettina,
Sorry it has taken a few days to get back to you.
I’v had a look in the Time-Machine section under Updates, and I can’t see the version that Calin had suggested, which is “Newspaper v111 package”.
Is there anyway I can get a link to download this version. I’m doing a lot of running around to find it with no success.
Thank you.
Cheers, Matt
https://drive.google.com/file/d/17RAvmR01PHTxf5hohrW1LM7oAfcLKO7L/view?usp=sharing
Link to screenshot
Thank you Calin,
I’m sorry to take up your time.
I’ve followed your screenshots and link, and for the life of me I can’t see previous versions to download. I can see the changelog and “what’s new”, but I can’t see a link. Is there a link you can share?
Hi Calin,
I’ve been digging around and I can’t find previous versions of Newspaper. I’m assuming that v111 is version 11.1.
Just want to flag what we’re trying to achieve. This workflow worked perfectly with Newspaper 9 and it’s locked in.
It’s a news site.
Our journalists aren’t that tech savvy, so we’ve come up with a solution that has the code for the video player (JW Player) in the loop-single template.
We’ve created a custom field that is the filename name for the video. The video is stored on S3. We’ve got the path to S3 in the theme, and the custom field is the video name.
This workflow can’t change. It’s set in stone. Our infrastructure and journalists (we’ve got about 20) only allows it to work this way.
Will this workflow work with your suggestion? Is it for an occasional video? I’ll have a play with v111 when I can install it.
Thanks for your time and help.
Matt