How do I create a ‘selection’ criteria list’ that will then dictate which posts are generated when the user presses search?

Your terminology is a little off. Search implies providing a search word of phrase and receiving matched when it is found in content. What you describe is commonly called filters or facets (sometimes faceted search). Implementing it would depend on your exact data architecture. You might use custom taxonomies, but really there aren’t details in … Read more

Output dynamic_sidebar_params in wp_head

Going through its normal proceedings WordPress will already have evaluated wp_head by the time it gets to the widgets. The dynamic_sidebar_params filter will only be called then as well, so it will also be of little help to get your css in the head. Here‘s something I wrote about this issue earlier. To include information … Read more

My plugin works in home page, but doesn’t work in post page

I think ajax request should point to the actual WordPress ajax handler. You can pass the variable by localising the script: $js_object = [ ‘ajaxUrl’ => admin_url(‘admin-ajax.php’) ]; wp_register_script(‘my-script’, ‘http://url’); wp_localize_script(‘my-script’, ‘pluginObject’, $js_object); wp_enqueue_script(‘my-script’); Register the ajax request into ajax hook: function widget_ajax_request() { // your stuff } add_action(‘wp_ajax_my_action’, ‘widget_ajax_request’); add_action(‘wp_ajax_nopriv_my_action’, ‘widget_ajax_request’); And your JS … Read more

New Custom Widget Call a Different Widget Function

As I’m not able to comment yet, I can only answer. But I’ve got questions. How does the widget get used? Where is it called? is the ORIGINAL script you posted above in a file like /theme/twitter-widget.php? Or is it in your functions.php script for the theme? Something wasn’t configured to run YOUR widget, and … Read more

conditional widget title

Not a lot to go on here! I’d suggest registering 2 different sidebars – one for the category 3 posts and one for the rest. Then you can add you widgets and modify them as required.

How do I get the posts from single page custom post type from a sidebar to display in a page?

It sounds as though you just need to create your post type templates. The archive of storylist posts will look for a template named archive-storylist.php to display posts. A single post of type storylist will attempt to use single-storylist.php to display that post. In either situation, if those files do not exist, WordPress follows the … Read more