[…] (both hierarchical and non-hierarchical) So when it comes down to export the data in the same format that it was imported, it’s common to need to use WP_Query. After all, it’s arguably the definitive API for working with posts, categories, tags, and meta data, right? But, as with so many things programming related, there’s […]
Search: “wp_query” (Page 11 of 29)
We found 145 results for your search.
This weekend, I shared how to setup a query to find all untagged posts in WordPress that aren’t tagged with a specific tag. In my example, I opted to use IDs (for no particular reason), but Ross also showed how you can use slugs, as well. Anyway, there are a number of things that you can […]
[…] with the WordPress API, there are a number of ways to go about doing this. Functions and classes that exists for things like this are: `get_post` ` WP_Query` Running a direct query with `$wpdb` …and so on Each of these has its advantages and disadvantages, but of everything listed above, there are always two […]
[…] custom taxonomies, then constructing queries can sometimes be a bit of a pain. But now, we have more API functions and features than ever before: `tax_query` in WP_Query `get_term` and `get_terms` `get_term_children` …and many more Of course, there are still cases in which retrieving and organizing data still leaves something to be desired. I […]
I think that one of the more underestimated aspects of building solutions with WordPress comes with leveraging custom post types and custom taxonomies. For those who are currently building products for others – be it plugins, custom themes, or web applications – then you’re likely familiar with how powerful these two features can be. Specifically, […]
