[wordpress] How to keep a blog post permanently at the top of the blog?

Discussion in 'WordPress' started by anions, Dec 4, 2007.

  1. #1
    Hi guys,
    I'm making a topsite using wordpress. I'm using it to post new websites and get subscribers.

    What I want is the opt-in box at the top of the blog and all the other posts underneath.

    Something like this:

    [​IMG]

    I wonder if there is plugin or something so that I can have a particular post at the top of the page, and the other posts underneath.

    Something like the "What seth godin would do?" plugin.

    So what do you suggest?

    Thanks,
    anions :)
     
    anions, Dec 4, 2007 IP
  2. qazu

    qazu Well-Known Member

    Messages:
    1,834
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    165
    #2
    I don't know of a plugin, but just take the post out of the loop and put it above it in the index.php.
     
    qazu, Dec 4, 2007 IP
    anions likes this.
  3. anions

    anions Notable Member

    Messages:
    4,840
    Likes Received:
    179
    Best Answers:
    0
    Trophy Points:
    275
    #3
    Ok.

    This is my index.php

    
    <?php get_header(); ?>
    
    <div class="content">
    	
    	<div id="primary">
    		<?php if (get_option('k2rollingarchives') == 1) { ?>
    		<div id="dynamic-content">
    
    			<?php include (TEMPLATEPATH . '/rollingarchive.php'); ?>
    
    		</div> <!-- #dynamic-content -->
    		<?php } else { ?>
    		<div id="current-content" class="hfeed">
    
    			<?php include (TEMPLATEPATH . '/theloop.php'); ?>
    
    		</div> <!-- #current-content -->
    
    		<div id="dynamic-content"></div>
    		<?php } ?>
    	</div> <!-- #primary -->
    
    	<?php get_sidebar(); ?>
    	
    </div> <!-- .content -->
    
    <?php get_footer(); ?>
    
    Code (markup):
    So do I put the html code after the
    line?

    Thanks for helping :)
     
    anions, Dec 4, 2007 IP
  4. techblog

    techblog Banned

    Messages:
    1,126
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    0
    #4
    There are a number of "announcement" and "sticky plug ins available. I'll have a bit of a google.
     
    techblog, Dec 4, 2007 IP
  5. techblog

    techblog Banned

    Messages:
    1,126
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    0
  6. qazu

    qazu Well-Known Member

    Messages:
    1,834
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    165
    #6
    Depending on how your CSS works, you'd want it either after
    or after
    so that they use the same styling
     
    qazu, Dec 4, 2007 IP
  7. anions

    anions Notable Member

    Messages:
    4,840
    Likes Received:
    179
    Best Answers:
    0
    Trophy Points:
    275
    #7
    Exactly what I was looking for :)
    I tried googling with a lot of keywords, but the word 'sticky' didnt pop up in my mind :p

    Ok, I'll try and see which one works.

    I want it to look more like an optin form, so now that i know how its done I'd rather have it look like a seperate box than a blog post.


    Either way, thanks a lot gazu and techblog for your help :D

    anions
     
    anions, Dec 4, 2007 IP
  8. techblog

    techblog Banned

    Messages:
    1,126
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    0
    #8
    np, just google what ever and put wordpress next to it..
     
    techblog, Dec 4, 2007 IP
  9. Inky

    Inky Peon

    Messages:
    107
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I used the sticky plugin and it works fine. Just make sure the sticky doesn't push down your new posts, or else people will think you haven't posted anything new.
     
    Inky, Dec 8, 2007 IP
  10. sizzler_chetan

    sizzler_chetan Prominent Member

    Messages:
    7,838
    Likes Received:
    664
    Best Answers:
    0
    Trophy Points:
    390
    #10
    sizzler_chetan, Dec 8, 2007 IP
  11. anions

    anions Notable Member

    Messages:
    4,840
    Likes Received:
    179
    Best Answers:
    0
    Trophy Points:
    275
    #11
    I've decided to use WWSGD, because it works perfectly with a few modifcations and yes I dont want to push the other posts down.
     
    anions, Dec 8, 2007 IP