Forum Replies Created

Viewing 1 replies (of 1 total)
  • thestonewailer

    (@thestonewailer)

    Add the following function to ‘functions.php’ in your theme:

    function force_more() {
    global $more;
    $more = 0;
    }

    In your sidebar.php, begin your loop as follows:

    <?php
    force_more();
    query_posts(‘category_name=mycategory&showposts=5’);
    while (have_posts()) : the_post();
    ?>

    all done.

    Can someone walk me through exactly how to do this? I get weird error messages when I try to make this change to my functions.php file. I haven’t made it far enough to place the force_more code in my page template, since I can’t get past the first hurdle.

    I have a static page that displays posts, but I want to be able to use the MORE tag in my longer posts and I think that the above code will help, if I can figure out how to place it correctly.

    Thanks,
    Josh
    [sig moderated]

Viewing 1 replies (of 1 total)