0

So for my post list, currently these are sortby post_count.

Now, I am trying to sort the posts by "most newest" or "recent"

Here is how the shortcode works

[sortby=post_count]

Other parameters can be found from Order & Orderby Parameters, however I could not find parameter for "most newest."

Any suggestions?

1

Simply use date as a value to orderby and DESC as value to order. This will get posts which was published the most recently.

|improve this answer|||||
  • Any luck on this? – Pieter Goosen Mar 23 '15 at 4:33
  • Unfortunately no. It looks like [orderby] is not supported with the shortcode. I will probably work on it next weekend. =) Thanks Pieter – Steve Kim Mar 23 '15 at 5:21
  • In your shortcode you should probably try [sortby=date] :-) – Pieter Goosen Mar 23 '15 at 5:49
  • haha yeah, :P I tried that but no luck. It is not a big deal at this point. I set the sortby with user registered day. If I find out how to make it work, I will let you know. Thanks – Steve Kim Mar 23 '15 at 5:51
  • If you don't succeed, post your shortcode. I suspect that something is wrong then in your shortcode. Always good to have a look at the source :-). Good luck – Pieter Goosen Mar 23 '15 at 6:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.