I would like to “sticky/static” an entry on a page that i have created. I have installed adhesive but it looks like this if for posts only. How do i make a message appear at the top of a page, always?
Chris
just display post on a page and exclude all posts that are not classed as Sticky’s.
a quick search thru the codex will show you how to reload the loop to display post within a page
OK, been through the loop codex and now even more confused. I have placed this just for test:
<!– The following tests if the current post is in category 3. –>
<!– If it is, the div box is given the CSS class “post-cat-three”. –>
<!– Otherwise, the div box will be given the CSS class “post”. –>
<?php if ( in_category(‘1’) ) { ?>
<div class=”post-cat-one”>
<?php } else { ?>
<div class=”post”>
<?php } ?>
between this:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
and ends here:
<?php endwhile; else: ?>
<?php _e(‘Sorry, no posts matched your criteria.’); ?>
<?php endif; ?>
and nothing shows. I made a post (the text i want to show on the page) and filed it under uncategorized (hence the <?php if ( in_category(‘1’) ) { ?>
<div class=”post-cat-one”>)
Can anyone help a little more?
Confused,
Chris
Bit late to the party. But if you are ended up using the Adhesive plug-in, note that in_category doesn’t work with this plug-in installed: http://wordpress.org/support/topic/60152