bacon
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Displaying the 5 latest posts by:I’m having this problem too, I want the homepage to display specifics, eg the last 5 posts in category1, and the last 6 posts from category2. [code]<?php the_content('Read the rest of this entry...»'); ?>[/code] works, but it displays the entire post, disregarding where <!–more–> should kick in.
I had an idea for index.php – [code] if (URLrequestedVariable(?) == $_SERVER['DOCUMENT_ROOT']) { special index by category case } else { standard if (have_posts()) : loop. [/code]
Forum: Fixing WordPress
In reply to: How do I use `the_content` and The Loop tags on sub pages?*bump*
Forum: Fixing WordPress
In reply to: How do I use `the_content` and The Loop tags on sub pages?I don’t mean to hijack this thread, but since it’s resolved and my problem is very similar so I thought I’d just throw my question in here. I’m using the same code above to selectively insert a # of posts from a certain category. I created a page which I want to function as the index, where I can selectively post the “best of” stuff, and then also have a most recent entries. The problem is, entries display in full, where I want them to have a “Read the rest of this entry.” I’ve looked the_loop and the_content codex stuff with no luck, I can’t get the page to realize it’s a multipost page (I think thats what the problem is). Check out http://www.burningvillage.com/home for the broken page and http://www.burningvillage.com for the index that properly cuts posts at <!–more–>.
Here’s some details:
page.php code :
<?php if ($_GET[’pagename’] = ‘home’) { ?>… Thanks for your help!
<h2>Our Hottest Content (a good place to start)</h2>
<?php $hot_query = new WP_Query('cat=8&showposts=4'); ?>
<?php while ($hot_query->have_posts()) : $hot_query->the_post(); ?>
<div class="homepost">
<h2 id="post-<?php the_ID(); ?>">" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></h2>
<div class="entrytext">
<?php the_content('Read the rest of this entry »'); ?>
</div>
</div>
<?php endwhile;?>
<?php } else { ?>