WordPress Business Themes › Forums › Responsive Themes › Coupon Theme › Sort Coupons by Listing Type › Reply To: Sort Coupons by Listing Type
After applying query, the sorting works but why my all the header and styling is disturbed?
Could be a couple things, like the special characters used to enclose data.
See if this takes care of the header:
Change ALL of the special characters ‘ and ’ to a regular apostrophe '. They are differently encoded types of characters.
Note: For future reference, if you see an error message it’s helpful to include that in your posts.
The way this forum posts data could change them to the special characters, so I’m hoping this displays your code with the proper apostrophes:
if (!is_admin() && !$wp_obj->is_main_query() && !is_front_page())
add_action( 'pre_get_posts', array( $this, '_custom_order' ) );
Submit your feature requests to our ideas board and it could be included in a future theme update.
or contact our support team