Title: Order by &#8220;Recent Posts&#8221;
Last modified: May 17, 2022

---

# Order by “Recent Posts”

 *  Resolved [gabrixbr](https://wordpress.org/support/users/gabrixbr/)
 * (@gabrixbr)
 * [4 years ago](https://wordpress.org/support/topic/order-by-recent-posts/)
 * Hello Héctor,
    Is there a way to order the posts by “recent first” like in the
   WordPress natural order? I know it seems weird, but in this way, I can use only
   one plugin (and style .css) to display POPULAR posts, and also RECENT ones. I
   know there is the “Recently” plugin, but it works with other css class names 
   and does not work inside Elementor or Block Editor. Thanks.
    -  This topic was modified 4 years ago by [gabrixbr](https://wordpress.org/support/users/gabrixbr/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [4 years ago](https://wordpress.org/support/topic/order-by-recent-posts/#post-15654705)
 * Hi [@gabrixbr](https://wordpress.org/support/users/gabrixbr/),
 * Well, if you know your way around PHP/MySQL you could have a look at the \WordPressPopularPosts\
   Query class and use the filter hooks it provides to change the query and have
   WPP return posts sorted by date. Otherwise, well, there’s not a lot you can do
   😛
 * I do plan to make Recently compatible with the Block editor at some point though,
   just haven’t had the time to do so but thanks for the reminder. I really should
   get that done soon.
 *  [Samot80](https://wordpress.org/support/users/samot80/)
 * (@samot80)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/order-by-recent-posts/#post-15821480)
 * Justo lo mismo estaba por preguntar Héctor, me parece muy buena implementación
   de además de proporcionar la posibilidad de mostrar publicaciones populares por
   periodos, también de la posibilidad de mostrar publicaciones recientes, si que
   sean necesario instar más de un plugin.
 * Saludos
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/order-by-recent-posts/#post-15821645)
 * Hola [@samot80](https://wordpress.org/support/users/samot80/),
 * > … la posibilidad de mostrar publicaciones recientes, si que sean necesario 
   > instar más de un plugin.
 * El asunto es que ése no es el objetivo del plugin. WPP existe para mostrar publicaciones
   populares (como ya mencionaste).
 * Hacer que WPP haga algo distinto a su objetivo original es una receta infalible
   para que las cosas se salgan de control: cualquier usuario podría pedir cualquier
   funcionalidad (ejm. “¡WPP también debería hacer escaneos de seguridad!”) y moralmente
   no habría manera de decir que no porque su argumento será -y con toda razón- “
   el plugin ya hace _X_ y _Y_, ¿por qué no puede hacer _Z_?” Prefiero evitar esa
   situación. Además, bien dice el refrán “quién mucho abarca poco aprieta”.
 * Por esa razón existe [Recently](https://wordpress.org/plugins/recently/): es 
   como WPP pero para mostrar publicaciones recientes. Y si realmente no quieres
   instalar otro plugin puedes usar el widget de Entradas Recientes que viene incluido
   con WordPress, o también puedes programar tu propia lista de entradas recientes
   si tienes experiencia desarrollando con WordPress.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Order by “Recent Posts”’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/order-by-recent-posts/#post-15821645)
 * Status: resolved