deeltje
Forum Replies Created
-
Thanks Yani, again!
It works perfectly 😉
Thanks Yani.
I’m going to translate it to Dutch
Forum: Fixing WordPress
In reply to: Orderby title doesn't sort numbers correctlySadly enough, still the same output …
Forum: Fixing WordPress
In reply to: Orderby title doesn't sort numbers correctlyDidn’t change it, something within all the functions is blocking it I think …
Forum: Fixing WordPress
In reply to: Orderby title doesn't sort numbers correctlyThe thing is; I’ve tested it on the same webhostingaccount with another installation of WP, same stuff, different theme and there it works. So it must be the theme and probably something being called that overwrites the usort, but what …
Forum: Fixing WordPress
In reply to: Orderby title doesn't sort numbers correctlyI’m using a theme called PicTree and it uses functions.php heavily.
One of the included files in functions.php is max_posts.php which has a lot of query adjustments
Heres the code in the max_posts.php file:
I’m sure the entire system is being adjusted there and thus overwriting whatever where trying to do with the gallery_loop.php file …
Any suggestions there?
Forum: Fixing WordPress
In reply to: Orderby title doesn't sort numbers correctlyYou were right, but sadly enough I still get the same results …
Sorted by title 1 testes 12 aaaaa 20 dxfvvrer 4 xdfsd 45 asasd 7 aaaaAfter numeric sort 1 testes 12 aaaaa 20 dxfvvrer 4 xdfsd 45 asasd 7 aaaaForum: Fixing WordPress
In reply to: Orderby title doesn't sort numbers correctlyrewind_query(); echo '<br /><h2>After numeric sort</h2>'; usort($wp_query->posts,'my_post_sort'); while (have_posts()) { the_post(); the_title();echo "<br />"; } echo '<br /><br />';As soon as I added the
()I get aFatal error: Call to undefined function rewind_query() in /public_html/client/wp-content/themes/client/gallery-loop.php on line 39Forum: Fixing WordPress
In reply to: Orderby title doesn't sort numbers correctlyI’m using PHP v 5.2.17 Shouldn’t be a problem … I’m baffled …
Forum: Fixing WordPress
In reply to: Orderby title doesn't sort numbers correctlyYeah that’s all i’m seeying, could it be a php-setting?
Forum: Fixing WordPress
In reply to: Orderby title doesn't sort numbers correctlyYeah, here’s my complete code:
Forum: Fixing WordPress
In reply to: Orderby title doesn't sort numbers correctlySorted by title 1 testes 12 aaaaa 20 dxfvvrer 4 xdfsd 45 asasd 7 aaaaAfter numeric sort 1 testes 12 aaaaa 20 dxfvvrer 4 xdfsd 45 asasd 7 aaaaDarn, something is still going wrong …
Forum: Fixing WordPress
In reply to: Orderby title doesn't sort numbers correctlyglobal $imgDimensions, $substrExcerpt, $itemCaption, $shortname, $paged, $wp_query;Good guess, but still the same … sorry
1 testes 12 aaaaa 20 dxfvvrer 4 xdfsd 45 asasd 7 aaaaForum: Fixing WordPress
In reply to: Orderby title doesn't sort numbers correctlyThere was no text after the numbers but there should be, so I changed that. The thing is, even with the space out of the code it still gives me the same reaction:
1 testes 12 aaaaa 3 dxfvvrer 4 xdfsd 7 aaaa 8 asasdForum: Fixing WordPress
In reply to: Orderby title doesn't sort numbers correctlyThis is my entire code right now: