diff --git a/index.html b/index.html
index 77d5e0c..0338e3c 100644
--- a/index.html
+++ b/index.html
@@ -32,21 +32,21 @@
WordPress Query Comprehensive R
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.github.io
*
-* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
+* Dev Hub: https://developer.wordpress.org/reference/classes/wp_query/#parameters
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php
*/
$args = array(
// Author Parameters - Show posts associated with certain author.
-// http://codex.wordpress.org/Class_Reference/WP_Query#Author_Parameters
+// https://developer.wordpress.org/reference/classes/wp_query/#author-parameters
'author' => '1,2,3,', // (int | string) - use author id or comma-separated list of IDs [use minus (-) to exclude authors by ID ex. 'author' => '-1,-2,-3,']
'author_name' => 'luetkemj', // (string) - use 'user_nicename' (NOT name)
'author__in' => array( 2, 6 ), // (array) - use author id (available with Version 3.7).
'author__not_in' => array( 2, 6 ), // (array)' - use author id (available with Version 3.7).
// Category Parameters - Show posts associated with certain categories.
-// http://codex.wordpress.org/Class_Reference/WP_Query#Category_Parameters
+// https://developer.wordpress.org/reference/classes/wp_query/#category-parameters
'cat' => 5, // (int) - Display posts that have this category (and any children of that category), using category id.
'cat' => '-12,-34,-56' // Display all posts except those from a category by prefixing its id with a '-' (minus) sign.
'category_name' => 'staff, news', // (string) - Display posts that have these categories (and any children of that category), using category slug.
@@ -56,7 +56,7 @@ WordPress Query Comprehensive R
'category__not_in' => array( 2, 6 ), // (array) - Display posts that DO NOT HAVE these categories (not children of that category), using category id.
// Tag Parameters - Show posts associated with certain tags.
-// http://codex.wordpress.org/Class_Reference/WP_Query#Tag_Parameters
+// https://developer.wordpress.org/reference/classes/wp_query/#tag-parameters
'tag' => 'cooking', // (string) - use tag slug.
'tag_id' => 5, // (int) - use tag id.
'tag__and' => array( 2, 6), // (array) - use tag ids.
@@ -66,7 +66,7 @@ WordPress Query Comprehensive R
'tag_slug__in' => array( 'red', 'blue'), // (array) - use tag slugs.
// Taxonomy Parameters - Show posts associated with certain taxonomy.
-// http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters
+// https://developer.wordpress.org/reference/classes/wp_query/#taxonomy-parameters
// Important Note: tax_query takes an array of tax query arguments arrays (it takes an array of arrays)
// This construct allows you to query multiple taxonomies by using the relation parameter in the first (outer) array to describe the boolean relationship between the taxonomy queries.
'tax_query' => array( // (array) - use taxonomy parameters (available with Version 3.1).
@@ -88,7 +88,7 @@ WordPress Query Comprehensive R
),
// Post & Page Parameters - Display content based on post and page parameters.
-// http://codex.wordpress.org/Class_Reference/WP_Query#Post_.26_Page_Parameters
+// https://developer.wordpress.org/reference/classes/wp_query/#post-page-parameters
'p' => 1, // (int) - use post id.
'name' => 'hello-world', // (string) - use post slug.
'title' => 'Hello World' // (string) - use post title (available with Version 4.4)
@@ -104,7 +104,7 @@ WordPress Query Comprehensive R
// NOTE: you cannot combine 'post__in' and 'post__not_in' in the same query
// Password Parameters - Show content based on post and page parameters. Remember that default post_type is only set to display posts but not pages.
-// http://codex.wordpress.org/Class_Reference/WP_Query#Password_Parameters
+// https://developer.wordpress.org/reference/classes/wp_query/#password-parameters
'has_password' => true, // (bool) - available with Version 3.9
// true for posts with passwords;
// false for posts without passwords;
@@ -112,7 +112,7 @@ WordPress Query Comprehensive R
'post_password' => 'multi-pass', // (string) - show posts with a particular password (available with Version 3.9)
// Post Type Parameters - Show posts associated with certain type or status.
-// http://codex.wordpress.org/Class_Reference/WP_Query#Type_Parameters
+// https://developer.wordpress.org/reference/classes/wp_query/#post-type-parameters
'post_type' => array( // (string / array) - use post types. Retrieves posts by Post Types, default value is 'post';
'post', // - a post.
'page', // - a page.
@@ -125,7 +125,7 @@ WordPress Query Comprehensive R
'post_type' => 'any', // - retrieves any type except revisions and types with 'exclude_from_search' set to true.
// Post Status Parameters - Show posts associated with certain type or status.
-// http://codex.wordpress.org/Class_Reference/WP_Query#Status_Parameters
+// https://developer.wordpress.org/reference/classes/wp_query/#status-parameters
'post_status' => array( // (string | array) - use post status. Retrieves posts by Post Status, default value i'publish'.
'publish', // - a published post or page.
'pending', // - post is pending review.
@@ -141,7 +141,7 @@ WordPress Query Comprehensive R
// Comment Paremters - @since Version 4.9 Introduced the `$comment_count` parameter.
-// https://codex.wordpress.org/Class_Reference/WP_Query#Comment_Parameters
+// https://developer.wordpress.org/reference/classes/wp_query/#comment-parameters
'comment_count' => 10 // (int | array) The amount of comments your CPT has to have ( Search operator will do a '=' operation )
'comment_count' => array(
'value' => 10 // (int) - The amount of comments your CPT has to have when comparing
@@ -149,7 +149,7 @@ WordPress Query Comprehensive R
)
// Pagination Parameters
- //http://codex.wordpress.org/Class_Reference/WP_Query#Pagination_Parameters
+ //https://developer.wordpress.org/reference/classes/wp_query/#pagination-parameters
'posts_per_page' => 10, // (int) - number of post to show per page (available with Version 2.1). Use 'posts_per_page' => -1 to show all posts.
// Note: if the query is in a feed, wordpress overwrites this parameter with the stored 'posts_per_rss' option. Treimpose the limit, try using the 'post_limits' filter, or filter 'pre_option_posts_per_rss' and return -1
'nopaging' => false, // (bool) - show all posts or use pagination. Default value is 'false', use paging.
@@ -162,14 +162,14 @@ WordPress Query Comprehensive R
// The 'offset' parameter is ignored when 'posts_per_page'=>-1 (show all posts) is used.
'paged' => get_query_var('paged'), // (int) - number of page. Show the posts that would normally show up just on page X when usinthe "Older Entries" link.
// NOTE: This whole paging thing gets tricky. Some links to help you out:
- // http://codex.wordpress.org/Function_Reference/next_posts_link#Usage_when_querying_the_loop_with_WP_Query
+ // https://developer.wordpress.org/reference/functions/next_posts_link/
// http://codex.wordpress.org/Pagination#Troubleshooting_Broken_Pagination
'page' => get_query_var('page'), // (int) - number of page for a static front page. Show the posts that would normally show up just on page X of a Static Front Page.
// NOTE: The query variable 'page' holds the pagenumber for a single paginated Post or Page that includes the <!--nextpage--> Quicktag in the post content.
'ignore_sticky_posts' => false, // (boolean) - ignore sticky posts or not (available with Version 3.1, replaced caller_get_posts parameter). Default value is 0 - don't ignore sticky posts. Note: ignore/exclude sticky posts being included at the beginning of posts returned, but the sticky post will still be returned in the natural order of that list of posts returned.
// Order & Orderby Parameters - Sort retrieved posts.
-// http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
+// https://developer.wordpress.org/reference/classes/wp_query/#order-orderby-parameters
'order' => 'DESC', // (string) - Designates the ascending or descending order of the 'orderby' parameter. Default to 'DESC'.
//Possible Values:
//'ASC' - ascending order from lowest to highest values (1, 2, 3; a, b, c).
@@ -197,7 +197,7 @@ WordPress Query Comprehensive R
// 'post_parent__in' - Preserve post parent order given in the 'post_parent__in' array (available since Version 4.6). Note - the value of the order parameter does not change the resulting sort order.
// Date Parameters - Show posts associated with a certain time and date period.
-// http://codex.wordpress.org/Class_Reference/WP_Query#Date_Parameters
+// https://developer.wordpress.org/reference/classes/wp_query/#date-parameters
'year' => 2014, // (int) - 4 digit year (e.g. 2011).
'monthnum' => 4, // (int) - Month number (from 1 to 12).
'w' => 25, // (int) - Week of the year (from 0 to 53). Uses the MySQL WEEK command. The mode is dependenon the "start_of_week" option.
@@ -207,7 +207,7 @@ WordPress Query Comprehensive R
'second' => 30, // (int) - Second (0 to 60).
'm' => 201404, // (int) - YearMonth (For e.g.: 201307).
'date_query' => array( // (array) - Date parameters (available with Version 3.7).
- // these are super powerful. check out the codex for more comprehensive code examples http://codex.wordpress.org/Class_Reference/WP_Query#Date_Parameters
+ // these are super powerful. check out the Dev Hub for more comprehensive code examples https://developer.wordpress.org/reference/classes/wp_query/#date-parameters
array(
'year' => 2014, // (int) - 4 digit year (e.g. 2011).
'month' => 4, // (int) - Month number (from 1 to 12).
@@ -230,7 +230,7 @@ WordPress Query Comprehensive R
),
// Custom Field Parameters - Show posts associated with a certain custom field.
-// http://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters
+// https://developer.wordpress.org/reference/classes/wp_query/#custom-field-post-meta-parameters
'meta_key' => 'key', // (string) - Custom field key.
'meta_value' => 'value', // (string) - Custom field value.
'meta_value_num' => 10, // (number) - Custom field value.
@@ -239,7 +239,7 @@ WordPress Query Comprehensive R
'relation' => 'AND', // (string) - Possible values are 'AND', 'OR'. The logical relationship between each inner meta_query array when there is more than one. Do not use with a single inner meta_query array.
array(
'key' => 'color', // (string) - Custom field key.
- 'value' => 'blue', // (string/array) - Custom field value (Note: Array support is limited to a compare value of 'IN', 'NOT IN', 'BETWEEN', or 'NOT BETWEEN') Using WP < 3.9? Check out this page for details: http://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters
+ 'value' => 'blue', // (string/array) - Custom field value (Note: Array support is limited to a compare value of 'IN', 'NOT IN', 'BETWEEN', or 'NOT BETWEEN') Using WP < 3.9? Check out this page for details: https://developer.wordpress.org/reference/classes/wp_query/#custom-field-post-meta-parameters
'type' => 'CHAR', // (string) - Custom field type. Possible values are 'NUMERIC', 'BINARY', 'CHAR', 'DATE', 'DATETIME', 'DECIMAL', 'SIGNED', 'TIME', 'UNSIGNED'. Default value is 'CHAR'. The 'type' DATE works with the 'compare' value BETWEEN only if the date is stored at the format YYYYMMDD and tested with this format.
//NOTE: The 'type' DATE works with the 'compare' value BETWEEN only if the date is stored at the format YYYYMMDD and tested with this format.
'compare' => '=', // (string) - Operator to test. Possible values are '=', '!=', '>', '>=', '<', '<=', 'LIKE', 'NOT LIKE', 'IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN', 'EXISTS' (only in WP >= 3.5), and 'NOT EXISTS' (also only in WP >= 3.5). Default value is '='.
@@ -252,16 +252,16 @@ WordPress Query Comprehensive R
),
// Permission Parameters - Display published posts, as well as private posts, if the user has the appropriate capability:
-// http://codex.wordpress.org/Class_Reference/WP_Query#Permission_Parameters
+// https://developer.wordpress.org/reference/classes/wp_query/#permission-parameters
'perm' => 'readable', // (string) Possible values are 'readable', 'editable'
// Mime Type Parameters - Used with the attachments post type.
-// https://codex.wordpress.org/Class_Reference/WP_Query#Mime_Type_Parameters
+// https://developer.wordpress.org/reference/classes/wp_query/#mime-type-parameters
'post_mime_type' => 'image/gif', // (string/array) - Allowed mime types.
// Caching Parameters
-// http://codex.wordpress.org/Class_Reference/WP_Query#Caching_Parameters
+// https://developer.wordpress.org/reference/classes/wp_query/#caching-parameters
// NOTE Caching is a good thing. Setting these to false is generally not advised.
'cache_results' => true, // (bool) Default is true - Post information cache.
'update_post_term_cache' => true, // (bool) Default is true - Post meta information cache.
@@ -270,13 +270,13 @@ WordPress Query Comprehensive R
// Search Parameter
-// http://codex.wordpress.org/Class_Reference/WP_Query#Search_Parameter
+// https://developer.wordpress.org/reference/classes/wp_query/#search-parameters
's' => $s, // (string) - Passes along the query string variable from a search. For example usage see: http://www.wprecipes.com/how-to-display-the-number-of-results-in-wordpress-search
'exact' => true, // (bool) - flag to make it only match whole titles/posts - Default value is false. For more information see: https://gist.github.com/2023628#gistcomment-285118
'sentence' => true, // (bool) - flag to make it do a phrase search - Default value is false. For more information see: https://gist.github.com/2023628#gistcomment-285118
// Post Field Parameters
-// For more info see: http://codex.wordpress.org/Class_Reference/WP_Query#Return_Fields_Parameter
+// For more info see: https://developer.wordpress.org/reference/classes/wp_query/#return-fields-parameter
// also https://gist.github.com/luetkemj/2023628/#comment-1003542
'fields' => 'ids', // (string) - Which fields to return. All fields are returned by default.
// Possible values:
@@ -285,7 +285,7 @@ WordPress Query Comprehensive R
// Passing anything else will return all fields (default) - an array of post objects.
// Filters
-// For more information on available Filters see: http://codex.wordpress.org/Class_Reference/WP_Query#Filters
+// For more information on available Filters see: https://codex.wordpress.org/Plugin_API/Filter_Reference#WP_Query_Filters
);