Sounds great! Would it be possible to easily have it also include sticky posts on the index, or perhaps ONLY on the index? For instance, if you wanted to put an announcement on the main page and then maybe have it drop off the index and get included in the archives after it passes the future date you set?
I wouldn’t know how to go about it, but I know that the PHP based program Express Engine has a function where you can select an entry to be sticky or to expire after a certain date. I haven’t used it though, so I’m not sure how it works on their program.
Icyshard:
Take a look at Kitten’s plugin: Event Calendar as a Sticky
Misses on the show only in one catagory, but if you create a cat called “announcements” or something, should take care of it…
my loop is already modiefied to use the stats plugin and thus it looks like this:
<?php
if (! empty($display_stats) ) {
get_stats(1);
echo “
“;
}
else if (($posts & empty($display_stats)) ) : foreach ($posts as $post) : start_wp(); ?>
<?php the_date(”,'<h2>’,'</h2>’); ?>
So how am i supposed to change the line that is bolded?
Anonymous
To get sticky posts on the index just make sure you make the post beloong to that cat, to make it only the index make it belong only to that cat. With the date thing, yes Kittens plugin will give you that (with mine you must disable the sticky custom field), though when I last looked at it you did have to live with it showing a future date which looks a bit goofy in a journal :-), but I am sure it can be easily fixed.
It would not be hard to make mine have a date responsiveness, all you would need to do is to make the custom field value the use-by date (instead of just ‘1’) and then apply a filter based on that in the function (in the database query).
Andrew
I got it to work, however, the sticky note and its comment boxes appear on every entry’s comment page! Can someone help me?
http://scvcstar.host.sk/wp/index.php/archives/2004/06/16/grr/
As a the typical non-programming-but-good@cut & pasting newbie, i have been reading the andrew hall, david chait, & phpNeophyte threads dutifully…
I’m on 1.2 WP and I got Andrew Hall’s plugin to work…except for making the one post sticky on the home page (like phpNeo’s tier1 site). (I am trying to have a sticky “About Us” post that also is sticky on the main page)
I read that in order to make the home page have a sticky post, I just have to modify andrew’s hack so that I tell it WHICH categories I want that one post to be sticky in.
Welll…..how do I know what the default category is, ***if I have not enabled posting via email***? Do I have to do that?
I have read other threads that said the Admin > Options > Writing > Writing by Email > Usual Category picklist selection is UNRELATED to the mailserver/login name/password fields directly above. To test this, I changed my Usual Category to “Region” (instead of Miscellaneous), and there was no change.
soooo, I am embarassingly unsure as to what my default category really is — when I choose to write something, the “Miscellaneous” checkbox is always chose, but I always uncheck it.
but this leads to other questions so here they all are:
* how do i set my default category, and can this be done without enabling posting by email (sounds like an easy one)
* how can i prevent anyone else but the site admin from posting to hidden categories (like About Us, Contact Us)
* how can i prevent anyone else from using the Custom Field “About Us” or “Contact Us”?
back to searching through the support threads…but i can’t believe i’ve gotten this far off of everyone’s help. 🙂
oh, and my work in progress =
http://www.grubgirl.com/blog
be gentle, please! work in progres…… 😉
and yes, have a GREAT weekend. TGIF!
Per phpNeo’s private response to me, here’s a no brainer fix…
I had renamed my “General” (default) category to something else (Misc) and forgot about it.
I renamed “General” to “Homepage” (his idea, which I liked).
No to play with whether or not to have posts on the homepage… 🙂
And I await comments on the other questions…but I”ll troll around about who can see what categories and all that. 🙂
Where’s the link for this plugin??