summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index 7eebc3f..7553f43 100644
--- a/functions.php
+++ b/functions.php
@@ -225,6 +225,15 @@ function comment_form_hide_cookies_consent( $fields ) {
add_filter( 'comment_form_default_fields', 'comment_form_hide_cookies_consent' );
/**
+ * Allows to pass the parameter 'sort' and 'order' to WP pages.
+ */
+add_filter('query_vars', function ( $qvars ) {
+ $qvars[] = '_sort';
+ $qvars[] = '_order';
+ return $qvars;
+ } );
+
+/**
* Function to get the clean title of a blog post.
*/
if ( ! function_exists("get_my_clean_title")) {