he child page, separated ba slash 'post_parent', //(int) - use page id. Return just the child Pages. (Only works with heirachical post types.) 'post_parent__in', //(array) - use post ids. Specify posts whose parent is in an array. NOTE: Introduced in 3.6 'post_parent__not_in', //(array) - use post ids. Specify posts whose parent is not in an array. 'post__in', //(array) - use post ids. Specify posts to retrieve. ATTENTION If you use sticky posts, they will be included (prepended!) in the posts you retrieve whether you want it or not. To suppress this behaviour use ignore_sticky_posts 'post__not_in', //(array) - use post ids. Specify post NOT to retrieve. //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 'has_password', //(bool) - available with Version 3.9 //null for all posts with and without passwords 'post_password', //(string) - show posts with a particular password (available with Version 3.9) //////Type & Status Parameters - Show posts associated with certain type or status. //http://codex.wordpress.org/Class_Reference/WP_Query#Type_Parameters //NOTE: The 'any' keyword available to both post_type and post_status queries cannot be used within an array. 'post_type' => 'any', // - retrieves any type except revisions and types with 'exclude_from_search' set to true. //////Type & Status Parameters - Show posts associated with certain type or status. //http://codex.wordpress.org/Class_Reference/WP_Query#Status_Parameters 'post_status', //(string / array) - use post status. Retrieves posts by Post Status, default value i'publish'. //NOTE: The 'any' keyword available to both post_type and post_status queries cannot be used within an array. //////Pagination Parameters //http://codex.wordpress.org/Class_Reference/WP_Query#Pagination_Parameters 'posts_per_page', //(int) - number of post to show per page (available with Version 2.1). Use 'posts_per_page'=1 to show all posts (the 'offset' parameter is ignored with a -1 value). 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 'posts_per_archive_page', //(int) - number of posts to show per page - on archive pages only. Over-rides showposts anposts_per_page on pages where is_archive() or is_search() would be true 'nopaging', //(bool) - show all posts or use pagination. Default value is 'false', use paging. 'paged', //(int) - number of page. Show the posts that would normally show up just on page X when usinthe "Older Entries" link. // 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 // http://codex.wordpress.org/Pagination#Troubleshooting_Broken_Pagination 'offset', // (int) - number of post to displace or pass over. // Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination. for a workaround see: http://codex.wordpress.org/Making_Custom_Queries_using_Offset_and_Pagination // The 'offset' parameter is ignored when 'posts_per_page'=>-1 (show all posts) is used. '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 Quicktag in the post content. 'ignore_sticky_posts', // (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 'order', //(string) - Designates the ascending or descending order of the 'orderby' parameter. Default to 'DESC'. //Possible Values: 'orderby', //(string) - Sort retrieved posts by parameter. Defaults to 'date'. One or more options can be passed. EX: 'orderby' => 'menu_order title' //Possible Values: //'none' - No order (available with Version 2.8). //'ID' - Order by post id. Note the captialization. //'author' - Order by author. //'title' - Order by title. //'name' - Order by post name (post slug). //'date' - Order by date. //'modified' - Order by last modified date. //'parent' - Order by post/page parent id. //'rand' - Random order. //'comment_count' - Order by number of comments (available with Version 2.9). //'menu_order' - Order by Page Order. Used most often for Pages (Order field in the EdiPage Attributes box) and for Attachments (the integer fields in the Insert / Upload MediGallery dialog), but could be used for any post type with distinct 'menu_order' values (theall default to 0). //'meta_value' - Note that a 'meta_key=keyname' must also be present in the query. Note alsthat the sorting will be alphabetical which is fine for strings (i.e. words), but can bunexpected for numbers (e.g. 1, 3, 34, 4, 56, 6, etc, rather than 1, 3, 4, 6, 34, 56 as yomight naturally expect). //'meta_value_num' - Order by numeric meta value (available with Version 2.8). Also notthat a 'meta_key=keyname' must also be present in the query. This value allows for numericasorting as noted above in 'meta_value'. //'title menu_order' - Order by both menu_order AND title at the same time. For more info see: http://wordpress.stackexchange.com/questions/2969/order-by-menu-order-and-title //'post__in' - Preserve post ID order given in the post__in array (available with Version 3.5). //////Date Parameters - Show posts associated with a certain time and date period. //http://codex.wordpress.org/Class_Reference/WP_Query#Date_Parameters 'year', //(int) - 4 digit year (e.g. 2011). 'monthnum', //(int) - Month number (from 1 to 12). 'w', //(int) - Week of the year (from 0 to 53). Uses the MySQL WEEK command. The mode is dependenon the "start_of_week" option. 'day', //(int) - Day of the month (from 1 to 31). 'hour', //(int) - Hour (from 0 to 23). 'minute', //(int) - Minute (from 0 to 60). 'second', //(int) - Second (0 to 60). 'm', //(int) - YearMonth (For e.g.: 201307). 'date_query', //(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 //////Custom Field Parameters - Show posts associated with a certain custom field. //http://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters 'meta_key', //(string) - Custom field key. 'meta_value', //(string) - Custom field value. 'meta_value_num', //(number) - Custom field value. 'meta_compare', //(string) - Operator to test the 'meta_value'. Possible values are '!=', '>', '>=', '<', or ='. Default value is '='. 'meta_query', //(array) - Custom field parameters (available with Version 3.1). //////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 'perm', //(string) Possible values are 'readable', 'editable' //////Caching Parameters //http://codex.wordpress.org/Class_Reference/WP_Query#Caching_Parameters //NOTE Caching is a good thing. Setting these to false is generally not advised. 'cache_results', //(bool) Default is true - Post information cache. 'update_post_term_cache', //(bool) Default is true - Post meta information cache. 'update_post_meta_cache', //(bool) Default is true - Post term information cache. 'no_found_rows', //(bool) Default is false. WordPress uses SQL_CALC_FOUND_ROWS in most queries in order to implement pagination. Even when you donтАЩt need pagination at all. By Setting this parameter to true you are telling wordPress not to count the total rows and reducing load on the DB. Pagination will NOT WORK when this parameter is set to true. For more information see: http://flavio.tordini.org/speed-up-wordpress-get_posts-and-query_posts-functions //////Search Parameter //http://codex.wordpress.org/Class_Reference/WP_Query#Search_Parameter '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', //(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', //(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 //also https://gist.github.com/luetkemj/2023628/#comment-1003542 'fields', ); return $args; } /** * Recursive sanitation for an array * * @param $array * * @return mixed */ public static function recursive_sanitize_text_field($array) { if (!\is_array($array)) { return sanitize_text_field($array); } foreach ($array as $key => &$value) { if (\is_array($value)) { $value = self::recursive_sanitize_text_field($value); } else { $value = sanitize_text_field($value); } } return $array; } /** * Convert ACF Post Objects to IDS * * @param object|array|void $input * * @return array|void */ public static function convert_acf_post_objects_to_ids($input) { if (\is_array($input)) { if (!empty($input) && \is_object($input[0])) { return \array_map(function ($post) { return $post->ID; }, $input); } return $input; } elseif (\is_object($input)) { return $input->ID ?? ''; } return $input; } }
Fatal error: Trait 'DynamicContentForElementor\Wp' not found in /home/sportuga/public_html/wp-content/plugins/dynamic-content-for-elementor/class/helper.php on line 15