Git Product home page Git Product logo

Comments (6)

 avatar commented on July 21, 2024

oh ok!

from customizr.

eri-trabiccolo avatar eri-trabiccolo commented on July 21, 2024

Can you further test this?
I discovered that doing the post slider.
I was sure the sticky_posts option was well ordered.
When doing the grid I've been mislead by:
https://codex.wordpress.org/Sticky_Posts#Display_Sticky_Posts

that "the first" ... :(

from customizr.

 avatar commented on July 21, 2024

I'll do so (tomorrow morning if I can)

from customizr.

eri-trabiccolo avatar eri-trabiccolo commented on July 21, 2024

Just tested that that option is "updated" incrementally, so not ordered by publication date, say ordered by "date of setting them sticky"
(at least here, and with my shiny shape :/)

from customizr.

 avatar commented on July 21, 2024

ah ok.
Let's put it this way, if reordering the sticky posts by their actual publication date is too much of coding, we can stick to the default WP behaviour (ordered by date of sticky status set).

from customizr.

eri-trabiccolo avatar eri-trabiccolo commented on July 21, 2024

I think we can do that with small effort (and resources). Just with an SQL to query wp_posts where ID in ({array of sticky posts}) order by post_date , then extract the first result.
If you're fine with this we can do that.

about:

we can stick to the default WP behaviour (ordered by date of sticky status set)

Sure, nobody complained about that, but consider that this isn't the normal blog behavior. In the normal blog (you can see it with the alternate layout) the sticky posts are in head and ordered by pub date.

from customizr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.