Code Lesson of the day…make only stick notes appear on the page

Comments Off    Share on Facebook

I am a programmer at heart I guess or at least I like puzzles… anyhow the fix for the day was:

In wordpress make only stick notes appear on the first page or the page in question and only the part before the More or read more >>

You on the edge of your seat yet? Well put this little ditty with the category of your choice or take the category off and whala (that is texas french!) you get what you want

global $more;
// set $more to 0 in order to only get the first part of the post
$more = 0;

$args = array(
‘posts_per_page’ => 1,
‘post__in’ => get_option(‘sticky_posts’),
‘ignore_sticky_posts’ => 1

//end of code limiting to cat 3, sticky posts and only before the more…

Don’t go crazy with that…also found toward the bottom on this handy, dandy page in wordpress

Comments are closed.