WordPress.org

Forums

Sticky Post Hack - 0.72 (50 posts)

  1. Laughinglizard
    Member
    Posted 11 years ago #

    If you click on "publish" instead of "save", the status will change to publish.

  2. Zaaba
    Member
    Posted 11 years ago #

    Hey LL,
    I discovered a small bug! Apparently, if you assign a post as STICKY and of a SINGLE CATAGORY, things work fine.
    But when you assign STICKY and MORE THAN ONE CATAGORY to a post, then the post is replicated based on the number of catagories you assign it to. Hmm... wierd! Apparently this happens even if you DON'T assign sticky too.
    I run WP 1.01 and have done all the 1.0 steps shown in your readme file including the one from 1.01.

  3. dss
    Member
    Posted 10 years ago #

    I would love to make sticky posts for my WP, only i am using 1.2 RC1
    will this apply?
    dss

  4. morydd
    Member
    Posted 10 years ago #

    I've created another sticky post system. It's viewable at http://blog.morydd.net/index.php?p=148
    and can be viewed in action on the main page http://blog.morydd.net/
    It currently works in RC2, but does not use WP-approved db calls because I could not get them working, if anyone is able to do this, let me know.

  5. cLin
    Member
    Posted 10 years ago #

    ....where is the sticky.php file anyways?

  6. Anonymous
    Unregistered
    Posted 10 years ago #

    test

  7. Anonymous
    Unregistered
    Posted 10 years ago #

    Where does the < ?php if (empty($_GET) ) { include('sticky.php'); } ?> code go in the index.php file?

  8. morydd
    Member
    Posted 10 years ago #

    The <?php if (empty($_GET) ) { include('sticky.php'); } ?> code goes in the index.php file wherever you wish your sticky post to appear, outside the WordPress Loop

  9. Anonymous
    Unregistered
    Posted 10 years ago #

    Does it work with wp 1.2 Mingus?

  10. morydd
    Member
    Posted 10 years ago #

    Yes. I'd love to re-package it as a plug-in but I don't have the skills needed to set it up that way. Any help with that would be appreciated.

  11. Anonymous
    Unregistered
    Posted 10 years ago #

    'test

  12. Anonymous
    Unregistered
    Posted 10 years ago #

    test

  13. hdstich
    Member
    Posted 10 years ago #

    @morydd: if you like I can re-package your alternate sticky post system into a WP plugin.

  14. morydd
    Member
    Posted 10 years ago #

    Hooray!
    @hdstich: I would greatly appreciate it.

  15. hdstich
    Member
    Posted 10 years ago #

    @morydd:
    ok, but I need some spare time... (busy working for my company) ;-)

  16. Joshua Lyman
    Member
    Posted 10 years ago #

    hey @hdstich, what kind of timeframe are we looking at, since you are being responsible and working for the man? ;-)

  17. Anonymous
    Unregistered
    Posted 10 years ago #

    I have a sticky post plugin based on using the custom fields attribute in WP 1.2, trial version should be ready later today, just sorting a few bugs out. You can make posts sticky for any category or subcategory or for the main listing. You can unsticky them whenever you want.
    Andrew

  18. hdstich
    Member
    Posted 10 years ago #

    @Anonymous:
    sounds interesting! using a custom field is also an oppurtunity for marking the posts sticky.
    @morydd:
    hehe, just started the coding...

  19. passingnotes
    Member
    Posted 10 years ago #

    any way to make it sticky (forever) within a category page? for example, i've got X categories, each with a descriptive post (says what the category is all about) - would love to leave the 'description' up top forever, so that all news posts just continue to go below...right now, i have to keep changing the dates...kind of tedious...

  20. grubgirl
    Member
    Posted 10 years ago #

    how would you take andrew_h's plugin (which is v1.2 compatible) and remove the postdate for the particular posts that you want to be sticky?
    it looks like the answer to a similar question in this thread is for laughinglizard's method...which is not yet 1.2 ready (actually, it involves playing with the database and i am too scared too do that right now, being just a cut 'n paster).

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags