I created a nice narchive page that works on it’s own:
https://approachanxiety.com/narchives.php
But then when I try to use it as an include, the entries are missing and all I see are the category headers:
https://approachanxiety.com/?page_id=3
Here is the code for my template page:
<?php
/*
Template Name: Archives
*/
?>
<?php get_header(); ?>
<?php get_sidebar(); ?>
<div id="content" class="narrowcolumn">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><font color=#5C5858><?php the_title(); ?></font></h2>
<div class="entry">
<?php include('narchives.php'); ?>
</div>
</div>
<?php endwhile; endif; ?>
<?php edit_post_link('Edit this entry.', '', '
'); ?>
</div>
<?php get_footer(); ?>
Am I using this the wrong way?
Thanks!
]]>1. WP-Utterquotes is a modified and enhanced verion of WP-Quotes. (another quotes plugin)
2. Countdownj is a modified version of Owen’s excellent Countdown plugin.
3. Narchivesj is a modified version of the Sortable Nicer Archives plugin that works with WP2.0.
For additional reading about the modifications, and to download, please visit my plugins page at https://www.jwurster.us/wordpress/plugins/.
Thanks, jim
]]>I’m running a movie blog (WP1.5) at www.blacklagoon.info. I’m in the process of creating an straightforward site index using the narchives.php script, which you can see in action here: www.blacklagoon.info/map.php
I’ve used some extra code to display the header and footer from my theme.
However, the number of posts it displays is limited by the posts-per-page setting in WordPress options. I’d like it to show every single post. The php file sits in the root wordpress folder. I’ve tried a number of plugins but they don’t seem to have any effect. How can I specify a post count for this single PHP file?
The Nicer Archives script contains the code
$posts_per_page = '-1';
but this doesn’t seem to do a blind bit of difference. Any suggestions…?
Many thanks!
]]>example.php
to example.php?posts_per_page=-1
I hoped that helped others out there with this problem. Also if anyone has a more elegant hack please let me know. I would greatly appreciate it.
]]>