I implemented get_posts in The Loop using the following as a reference:
Codex states that you can orderby by content as follows:
$postslist = get_posts(‘numberposts=10&order=ASC&orderby=content‘);
However, the orderby=content parameter does not appear to be working.
To test I made about 10 posts, and I put a number in each of them (no other content). I then used the code above, but the posts are not ordered sequentially by content.
I tried other orderby parameters (like title & ID) and they worked as designed, but the content parameter appears to be broken.
Can anyone shed some light on this? Perhaps a hack or fix?
- The topic ‘get_posts parameter not working ($orderby)’ is closed to new replies.