mikeuk
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: <!–more–> fails when index loads from templateA development I’m working on requires several pages, each requiring a different editorial comment in the sidebar. It’s at https://www.smokespeak.com.
The first, index.php, page lets the <!–more–> tag work. None of the pages linked to by top menu items allow the <!–more–> tag to work. Same code though, contained in sidebar.php!
Here’s the code…
<?php rewind_posts(); ?>
<?php query_posts(‘showposts=1&cat=6’); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div id=”editor”>
<h1>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h1>
<?php the_content(‘ <more>’); ?>
</div>
<?php endwhile; ?>
<?php else : ?>
<div class=”editor”>
<?php _e(“No blog entries could be located. If this error continues then please let me know!”); ?>
</div>
<?php endif; ?>Further ideas? Also, what file(s)/functions deal with this tag? Where is function code which defines a home/index page to work one way and a single Page to work another?
Thanks guys!
Forum: Fixing WordPress
In reply to: <!–more–> fails when index loads from templateTo elaborate, I’ve tried this in different ways using different query methods on the loop. So long as the post with the <!–more–> tag sits within a WordPress default page it works.
Whenever it’s called from a template page, it doesn’t. I’ve tried copying the whole of the index page to a template page, and of course naming the template page appropriately, but no go. I’ve tried rewind_posts();, specific query_posts and all sorts of things without success.
If there’s no direct answer can someone please provide a potential line of reasoning – thanks!
Forum: Fixing WordPress
In reply to: <!–more–> fails when index loads from templateI have this problem to. Wasted a lot of time on it.