Multiple Tag Filtering

I recently wrote a bit of code which filters by one tag at a time only, but it would be pretty easy to modify it to ‘toggle’ the status of each tag so that you could filter by multiple tags simultaneously. You can see it working here: http://sadcookbook.recipes/sad/ . It uses the following PHP to … Read more

How can I get my WordPress plugin to receive data and relay it in an ajax/php request to a remote server that requires authentication?

In your PHP to call the remote server you may want to look at the http and API functions availalble in WordPress here: https://developer.wordpress.org/plugins/http-api/ For example, here’s a much easier way to get data from a remote server: $response = wp_remote_get( ‘https://api.github.com/users/blobaugh’ ); $http_code = wp_remote_retrieve_response_code( $response ); And here’s a way to post like … Read more

Showing search results on a page

Please refer to the updated comment. You have to do some changes to the search functionality by default. First, if you want to use different templates for each kind of search, you can add conditions in the search.php file. if(isset($_GET[‘search-type’])) { $type = $_GET[‘search-type’]; if ($type == ‘global’) { load_template(TEMPLATEPATH . ‘/search-global.php’); } elseif ($type … Read more