I’ve got a few databases of content for a site I’m working on that I need to display across my site. One is a daily lunch menu. I had wanted to feature it in the header as a Content Modal, but I can’t get the snippet to appear correctly. Is there a possible way to do this? Or am I out of luck with the content modal?
Hi,
Thanks for writing in!
Regretfully you cannot input a php code into the content modal.
What you can do is create a shortcode for your php script. Then use that shortcode in your content modal.
Kindly refer to the link below for your guide on how to create a shortcode
https://codex.wordpress.org/Shortcode_API
Thanks
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.