…using parameters which will be covered in this tutorial the query itself the loop finishing off: closing if and while tags and resetting post data In practice this will look something like the following:<?php $args = array( // Arguments for your query. ); // Custom query. $query = new WP_Query(…
…using two separate queries.Defining a Variable Based on the Main QueryHowever you're going to combine your main query with WP_Query, you need to store the current query object in a way that makes it easy to use in your WP_Query arguments. The easiest way to do this is by assigning…
…using the id we passed in from the URL, and destroy it. Try to challenge yourself and write it without reading my code. You should be getting a really good grasp of Parse.js at this point. del: function(id) { var query = new Parse.Query(Blog); query.get(id).then(function(blog){ blog.destroy().then(function(blog){ alert('Deleted!'); }) }); }…
…using the WP_User_Query class to query users in WordPress. Let's begin! What Is WP_User_Query? You probably get the idea of what WP_User_Query is by merely reading its name. Yes, nobody would expect to see WP_User_Query working with the "Tag Cloud" widget—it's a class that runs queries about users in WordPress.…
…using virtualenv to be followed while developing a Python application.Installing PackagesThe following packages need to be installed for developing and controlling the application we'll be developing.$ pip install gunicorn supervisor FlaskThe Trivial ApplicationI will now create a trivial application in Flask. This application is small but will meet the needs…
…using the XML-RPC API provided by Supervisor.The XML-RPC APIThe API itself is pretty straightforward and easy to use. We saw that the HTTP server for Supervisor runs on port 9001 by default. The same can be used to connect using any XML-RPC library. In the case of Python, we can…
…using AND because you want the post to have both terms. The second nested array looks for slow lunch recipes, again using AND. Of course you could vary your queries to include multiple taxonomy terms and values, and get as complex as you need.Applying Nested Queries: Taxonomy Terms, Metadata, and…
…using? In this tutorial, I'll introduce you to the Internet's DNS system and guide you through configuring records for the common requirements of everyday technology consultants and business owners.If you have any questions or comments on the tutorial, please feel free to post them below in the comments. You can…
…Using the Loop With WP_Query The second part was about creating a loop with the WP_Query class, also written by Rachel. In this part, we learned: what a "WordPress loop" is and where it's used the way WordPress loops are structured (with a well-written, detailed example) running extra loops with…
…Using featured images in post archives is a common feature of themes, but sometimes you might want to use featured images a bit differently. Occasionally I've worked on sites where the images to be displayed relate to the category a post is in and not to the post itself. Instead…