Sticky posts in homepage

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

Status: resolved

Tagged: 

  • This topic has 41 replies, 3 voices, and was last updated 1 mo, 2 w by  Jacob.
Viewing 41 reply threads
  • Author
    Posts
    • #16620

      rfischmann
      Member

      For my homepage, I’ve created a hero post block on the top with 6 posts from our “Destaques” category.

      I sometimes want posts to stay there a bit longer, so I select the “sticky” option from WordPress.

      However, that isn’t working on my Newsbeat setup. As soon as I published the 6th new “Destaques” post, the one that was set to sticky disappeared from the hero block.

      How can we make that work correctly, please?

    • #16687

      rfischmann
      Member

      I’ve actually noticed that no post blocks at all respect WordPress’ sticky setting. I need to enable that, somehow.

    • #16700

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #16707

      rfischmann
      Member

      Sorry, why was this marked as resolved?

    • #16716

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #16723

      rfischmann
      Member

      I really need sticky posts to work in the Hero Block, Jacob. Is it very hard to make it work?

      Thanks.

    • #16730

      jorgeocampo
      Member

      I also need sticky posts to work in the Hero Block
      🙁

    • #16741

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #16753

      rfischmann
      Member

      I appreciate it, thanks.

    • #17087

      jorgeocampo
      Member

      Hi there Guys!!
      Any news about the sticky post in the Hero Block?
      Or is there another option?

    • #17091

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #17095

      rfischmann
      Member

      Great news!

    • #17098

      jorgeocampo
      Member

      Great, we’ll be looking forward to it!

    • #17151

      rfischmann
      Member

      Where’s that update?

    • #17158

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #17161

      rfischmann
      Member

      Okay, thanks.

    • #17318

      rfischmann
      Member

      So Jacob, this is the new related option in 1.0.7?

      Use Sticky Posts only?
      Check this option to list Sticky Posts on hero banner, specified tags/categories will be ignored!

      If so, it doesn’t fit me at all.

      I don’t want my Hero category to be ignored, I want it to work as it does today and, IF (if!) there’s one of more sticky posts activated, they’ll be the first to show up inside the Hero Banner.

      Can you help, please? This is very important for us.

    • #17334

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #17336

      rfischmann
      Member

      Of course you can, I had it working on my previous theme.

      You just need to check if there’s any sticky posts in the database. If so, show them first and then the rest of the custom WP Query.

      At least one single sticky post first would solve the issue for me, it doesn’t need to be multiple sticky posts. I need to be able to have at least one enabled.

    • #17367

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #17379

      rfischmann
      Member

      Great news, thanks.

    • #17574

      rfischmann
      Member

      Still waiting on this, too. It’s very important for us.

    • #17693

      rfischmann
      Member

      Any news, Jacob?

    • #17715

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #17721

      rfischmann
      Member

      That would only be a problem for someone that doesn’t use any caching plugins. All queries should just run once and get cached for at least a few minutes…

    • #17785

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #17794

      rfischmann
      Member

      I appreciate that, Jacob.

    • #17866

      rfischmann
      Member

      Any news, Jacob? This is very important. I’ve been waiting since July…

    • #17906

      rfischmann
      Member

      Hello?…

    • #17908

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #17914

      rfischmann
      Member

      Sorry, Jacob, I don’t understand what that code does exactly.

      What I need is very simple: be able to make any post from the site sticky (just one post per time) and have it appear on the first spot inside the hero banner. That’s it…

    • #17919

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #17931

      rfischmann
      Member

      Doesn’t work as it should. It replaced all 6 posts from the hero banner section with the only one set to sticky.

    • #17943

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #17944

      rfischmann
      Member

      Listen, I’m not asking anything absurd. This worked perfectly on my previous theme.

      Newsbeat’s code should just check if there’s any sticky post set, then put it on the first hero banner section position. That’s it.

    • #17956

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #17958

      rfischmann
      Member

      When did I say that, Jacob? It can’t be this hard.

      I want the hero banner section to continuing show the latest 6 posts from my “Destaques” category, as it is today.

      However, if there’s one post set as sticky in my whole WordPress database, it should appear in the first spot of the hero banner section, which would then show the other latest 5 posts from “Destaques”.

      If it makes it any easier for you, the sticky post can also be inside the “Destaques” category for that to work.

      That’s it.

    • #17972

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #17977

      rfischmann
      Member

      There’s something wrong. As soon as I added that code to custom-functions.php, the last post from the hero banner disappeared.

      It should only swap the first post from the hero banner with a sticky post IF there’s a sticky post set, that’s it.

    • #17984

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #17993

      rfischmann
      Member

      I can’t believe it, but it seems to be finally working as it should. Thank you very much.

    • #18008

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

Viewing 41 reply threads
  • You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

© Copyright 2020 by wpthms.com. All Rights Reserved.