Hi
We are using BeaverBuilder to easily edit content in a digital signage project and would want to automatically refresh the page on the site so that the screens showing the content are automatically updated.
Long-term we would love to implement something efficient so that the content is automatically updated when any content is updated. But short term we are looking at just refreshing the page in a specific interval, eg. by adding the following to the head part of the theme:
<META HTTP-EQUIV="REFRESH" CONTENT="10">
However if we add this to the head it will also run when editing the page using the BeaverBuilder plugin, which is not the best editing experience.
Is there anyway I could conditionally run this to make sure it eg. how a check below checks the cpt of the current page?
<?php
if(is_singular( 'custom-cpt' ) )
{
echo '<META HTTP-EQUIV="REFRESH" CONTENT="5">' ;
}
?>
Appreciate your help!
/Johan
