On a website I’m working on, I am trying to use Advanced Custom Fields in a widget. I have ACF working on a normal page template on the website, but if I copy the same code into a Text widget, it displays nothing on the page.
Here are examples. This entire page is essentially built off of ACF and works great. http://staging.tsmdev.net/icc4/astatichome/
Then, I’m replicating the Resources box on to the about pages widget and it comes up blank. HTML shows up while inspecting the page, but the PHP for ACF won’t work. http://staging.tsmdev.net/icc4/about/the-iowa-catholic-conference/
Any ideas?
The default textwidget in wordpress will not process any PHP..
Try searching for a plugin like “text widget enhanced” or something and you’ll get a widget which can 🙂