• Resolved gabrixbr

    (@gabrixbr)


    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 2 years, 10 months ago by gabrixbr.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @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.

    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

    (@hcabrera)

    Hola @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: 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.