I trying to add parameters to the query string of an archive page.
So I verified that the following method works:
query_posts($query_string . '&order=ASC&meta_key=mykey&orderby=meta_value_num')
My problem is thus: My meta-value as-is can't be sorted properly; it first has to be altered via the php substr() function. But that breaks the query.
Any ideas how to get this done?
I've seen solutions posted where the database is queried directly, but aside from that obviously not being ideal, I also couldn't figure out how to page that.
Any help would be immensely appreciated :)