• Hi guys – I have a client using an old theme, specifically:
    https://github.com/hyprtxt/bootstrapfour
    https://blog.getbootstrap.com/2015/08/19/bootstrap-4-alpha/

    The option in the individual blog post to Stick to the top of the blog is not working.

    So my question is ‘how does this work from a code perspective’ ?
    What functions should I be looking at to see where this is broken.
    Unfortunately, I don’t know if this checkbox ever worked or if this is something new.

    When I look at the query being rendered on the blog index page, there is nothing in the query to identify what may or may not be stick:

    SELECT wp_posts.*
    FROM wp_posts
    WHERE 1=1
    AND wp_posts.ID IN (283,4259,285,3914,3915,3916,3917,35,287)
    AND wp_posts.post_type = 'page'
    AND ((wp_posts.post_status = 'publish'))
    ORDER BY wp_posts.post_date DESC

    It just list the posts by ‘menu order’.

    Can anyone tell me how the sticky part is supposed to work, and where I might find the WordPress code that control this??

    Thanks!

    • This topic was modified 4 years, 2 months ago by corrinarusso.
    • This topic was modified 4 years, 2 months ago by corrinarusso.
    • This topic was modified 4 years, 2 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 4 replies - 1 through 4 (of 4 total)
  • Are you using any post-order plugins?

    Thread Starter corrinarusso

    (@corrinarusso)

    Not that I can see:

    Advanced Custom Fields PRO
    Antispam Bee
    Author Bio Box
    Conditional Fields for Contact Form 7
    Contact Form 7
    Contact Form 7 – Dynamic Text Extension
    Contact Form DB
    Disqus for WordPress
    Select GDPR Cookie Consent
    HappyFox Chat
    Select Health Check & Troubleshooting
    jQuery Updater
    Lockdown WP Admin
    Logo Slider by LogicHunt.com
    MC4WP: Mailchimp for WordPress
    MetaSlider
    Mobile Menu
    Query Monitor
    Quick Page/Post Redirect Plugin
    Re-add text underline and justify
    Redirection
    Regenerate Thumbnails
    Share Buttons by AddThis
    Simple Lightbox
    Slider Revolution
    Ultimate Addons for WPBakery Page Builder
    Urvanov Syntax Highlighter
    Which Template Am I
    WordPress Importer
    WordPress Popular Posts
    WP Offload SES Lite
    WPBakery Page Builder
    Yoast Duplicate Post

    By default posts don’t have menu order support, they just get sorted by date DESC including sticky sorting. since you mentioned the menu_order, either a post-order plugin can do that, or if you have support enabled for menu order that comes with page-attributes support. so if you’re seeing menu order then the sticky thing might be ignored due to that.

    Thread Starter corrinarusso

    (@corrinarusso)

    Excellent point @vijayhardaha .
    Thanks – I’ll look into that in the theme.

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

The topic ‘Stick to the top of the blog’ is closed to new replies.