From 43a8c0fe50529a6b4161d12f087925c06ce37574 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 11 Feb 2019 01:44:37 +0100 Subject: First version of correct link generation for inclusion of special offers. --- functions.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 7eebc3f..7553f43 100644 --- a/functions.php +++ b/functions.php @@ -224,6 +224,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. */ -- cgit v1.2.3