pre_get_posts AND add_query_arg
Just trying to sort results, I don’t seem to be able to make these two play nice.
If I change the sort order of the results using pre_get_posts the add_query_arg either makes no changes or returns no results. Actually, when I reset the query or try to edit it at all, I get no joy with adding the query args.
I am trying to make the default of my custom post type return most popular on a field called views in the meta table but I also want to be able to let my users sort by title and by rating.
Thanks in advance for any information!
- The topic ‘pre_get_posts AND add_query_arg’ is closed to new replies.