Tag Info

Hot answers tagged

2

The limitation is down to the existing arguments and how pretty much all widgets typically output content: echo $args['before_widget']; if ( $title ) { echo $args['before_title'] . $title . $args['after_title']; } // Widget content echo $args['after_widget']; Some widgets may offer before/after content hooks, but if you want a "global" fix there's ...


2

Specific support for third party plugins are off topic, but your question can be answered in a general scope. get_the_ID() will not work for this specific issue, what you need is an array of post ID's that is currently being displayed on the page you are viewing. The current array of posts that is being displayed on any given page is stored in the $posts ...


1

This actually seems like a quite plausible approach - to me. There is nothing wrong with looping through it, sometimes it is the only/fastest way anyway. I don't know how you get your sidebars, but for this $sidebars_widgets = get_option( 'sidebars_widgets' ); can be used. Which gives you an associative array containing a list of widgets per sidebar ...


1

Answer can be found here: http://stackoverflow.com/questions/13863087/wordpress-custom-widget-image-upload Even though the problem described isn't exactly the same as I had, the code posted in the answer still helped me as that code actually does exactly what I needed. I also think that I didn't originally find this answer as it's on the regular Stack ...


1

You're going to want to use AJAX for this. Wordpress provides resources for connecting JS to PHP callbacks which is outlined in detail in the Codex. Basically, you'll want to take the following steps: Attach a handler to the first category select box using the .change() jQuery method. Use an AJAX function to post that data to the ajax url to call your PHP ...



Only top voted, non community-wiki answers of a minimum length are eligible