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.
Hello!
The child theme is not overwritten by the update. An issue for that could be the compatibility of your child theme with the new version of our theme(if you use some files which were updated). If you’ll have some custom modifications directly in the theme files, then better save the code and replace it after the update.
Please note that the customization(code) will require custom work which is not covered by the support team.
Thank you so much for understanding!