Access current post
Hi there, is there any way to access the current post from a SiteOrigin_Widget child class? I want to pass some info from the current post to a javascript tied to the widget using wp_localize_script. something like:
Save 30% on SiteOrigin Premium with our April sale. Use code APRIL30 .
Get help from the community and our team. Browse threads or start a new one.
Start New ThreadHi there, is there any way to access the current post from a SiteOrigin_Widget child class? I want to pass some info from the current post to a javascript tied to the widget using wp_localize_script. something like:
I'm building a bunch of custom widgets based on the SiteOrigin Widget class. Secondly I wonder if there is a simple way of targeting an element within the widget admin interface.
When I put it inside a repeater the indexing of the name-field seems to be incorrect. Instead of a number I get a variable that looks like #products# where products is the name of my repeater.
SiteOrigin Premium includes priority email support with direct replies from our team, usually within one business day.