Support » Fixing WordPress » custom loop with a sticky post

  • Resolved navigadget


    How can I (without using a plug-in) change the loop so that I can always show a post with a certain ID on top, and then continue with the regular loop?

    I tried some stuff in the index.php but no luck yet. I know it is simple but don’t have too much experience using variables inside/outside the loop yet.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Will it be always the same post? If yes: (no way there is an easier way without a plugin)

    Or, if you want different posts at different times…
    look for a sticky, adhesive or similar plugins.

    What’s wrong with plugins?

    I thought I could do it with a few lines of code so didn’t want to install a whole other plug-in. But oh well, get-a-post worked really well. So I used it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘custom loop with a sticky post’ is closed to new replies.