I’m getting a bit of a feeling that PremiumPress is a base on which more development “is needed”. Things out of the box are not working right.
E.G: The order by distance query (in my MJ/DT theme). I have solved it, but it should have worked out of the box…
return “DISTINCT $wpdb->posts.ID, IFNULL( 3956 * 2 * ASIN(SQRT( POWER(SIN((?EMPTY? – “.$lat.” ) * pi()/180 / 2), 2) +COS(t1.meta_value * pi()/180) * COS(“.$lat.” * pi()/180) * POWER(SIN((t2.meta_value – “.$log.”) * pi()/180 / 2), 2) )), 999999) as distance, “;
?EMPTY? should be t1.meta_value of course.
Cannot imagine I’m first here to find this error, but would be nice to share this info in an efficient way. The forum is nice but is there some kind of version control behind the themes?
This reply is for PremiumPress customers only.
407
Views
4
Replies
Copyright © 2010-2026 PremiumPress Limited.
I’m getting a bit of a feeling that PremiumPress is a base on which more development “is needed”. Things out of the box are not working right.
E.G: The order by distance query (in my MJ/DT theme). I have solved it, but it should have worked out of the box…
return “DISTINCT $wpdb->posts.ID, IFNULL( 3956 * 2 * ASIN(SQRT( POWER(SIN((?EMPTY? – “.$lat.” ) * pi()/180 / 2), 2) +COS(t1.meta_value * pi()/180) * COS(“.$lat.” * pi()/180) * POWER(SIN((t2.meta_value – “.$log.”) * pi()/180 / 2), 2) )), 999999) as distance, “;
?EMPTY? should be t1.meta_value of course.
Cannot imagine I’m first here to find this error, but would be nice to share this info in an efficient way. The forum is nice but is there some kind of version control behind the themes?
Members Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login Now