Change Query Arguments (filter) with jQuery/Ajax or PHP?

The permalink structure you’ve described above e.g…./hotels/hamburg/features/sea-face isn’t really something that could be achieved by using custom fields. You would be better off creating a new taxonomy called ‘features’ and populating it with terms like ‘sea-facing’ and any others. In order to do queries for multiple taxonomies I would recommend the excellent Query Multiple Taxonomies … Read more

WordPress Front-End Theme Editor

In WordPress 3.4 you have something called Theme Customizer that provide a optionpanel within wp-admin that enables you to see the changes in real-time. Maybe thats an option to go? Look at this video to see how it works: http://www.youtube.com/embed/amUjCfpIsJ4 Then you have themes like Headway that you can change the theme appearance on the … Read more

Connect Agile Carousel to WordPress AJAX

After some digging, I decided to try a hunch and it ended up working. Whether this is the sanctioned solution or not, but it has worked in my testing. For the AJAX url, add the $_GET variable ?action=[ajax_action] where [ajax_action] is your requested action. (ie. http://www.example.com/wp-admin/admin-ajax.php?action=[ajax_action]) Then make add_action(‘wp_ajax_nopriv_…’) include your action variable, ie. add_action(‘wp_ajax_nopriv_[ajax_action]’, … Read more

Converting a working AJAX form to work with WordPress

You have a typo: wp_ajax_ ajaxfunction. there’s a space after the underscore. also, use wp_localize_script to set your admin-ajax path: wp_enqueue_script( ‘contact’, get_bloginfo(‘template_directory’) . ‘/subscribe.js’, array(‘jquery’), ‘1.0’ ); wp_localize_script( ‘contact’, ‘ContactAjax’, array( ‘ajaxurl’ => admin_url( ‘admin-ajax.php’ ) ) ); then in your javascript, use ContactAjax.ajaxurl

problems with jquery external rss feed integration

Your stand-alone file doesn’t know the WordPress constants and functions. Use the native WordPress AJAX API instead. See also: What’s the preferred method of writing AJAX-enabled plugins? In short: Put all your custom code into a function or a class and hook from your plugin into … add_action(‘wp_ajax_ACTION_NAME’, ‘your_function’); … and … add_action(‘wp_ajax_nopriv_ACTION_NAME’, ‘your_function’); Replace … Read more