<?php /*
Template Name: Archive Page
*/ ?>
<?php define('WP_USE_THEMES', true); get_header(); ?>
<div class="archivepage">
<div id="all-wrap">
<div id="contentarea" class="clearhere">
<h1><?php echo ucwords($pagename);?> Archive</h1>
<?php query_posts('category_name='.get_the_title().'&post_status=publish,future');?>
<div class="navigation ntop">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h3><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h3>
<h4><?php the_date();?></h4>
<p class="post-text">
<?php the_content();?>
</p>
<p class="postmetadata alignright">
<?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>
<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
</p>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<div class="navigation nbottom">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
<p style="clear: both;"></p>
</div>
</div><!-- end all-wrap-->
</div>
<?php get_footer(); ?>
I also tried
<?php previous_posts_link('Newer Entries »',$in_same_term = false) ?>
but it did nothing different.
Thanks for any help.
]]>For the life of me, can’t find where to do this in the css. Can you
help me?
Thanks!
Lissi
https://www.ads-software.com/extend/plugins/advanced-excerpt/
]]>I just upgraded from an older version to the new 2.1.2 version and noticed the pagination went from Page 1,2,3,4 etc to “Older Entries” / “Newer Entries”. I have my directory set up in alphabetical order…not by date, so the Newer/Older thing is not correct in my situation.
Is it posible to switch it back to a page number pagination? OR let me know how to edit the “Older Entries” / “Newer Entries” to say Next Page/Previous page.
I checked the files under the folders; ‘Templates’, ‘Post Templates’ and ‘Deprecated’ and I found the ‘listings’ and ‘categories’ files with the “Older Entries” / “Newer Entries” code …but when I changed it nothing happened, even after refreshing my browser.
Please let me know.
thank you!
https://www.ads-software.com/extend/plugins/business-directory-plugin/
]]>In Internet Explorer they look fine. Not sure how they look in Safari or Firefox. What might be causing this?
Here’s a page with the links:
https://whoaskedyoushow.com/page/2/
Scroll all the way to the bottom. You have to look at it in Chrome to see what I mean. Thanks for any advice!
Chase
]]>I have older entries at the bottom of the page: when you click on this the entries remain the same. I have looked in the index.php and found this:
<div class="navigation">
<div class="alignleft"><?php next_posts_link('? Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries ?') ?></div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p>Sorry, but there are currently no posts found here.</p>
<?php endif; ?>
</div>
</div>
Any ideas?????????
Cheers J
[Please post code snippets between backticks or use the code button.]
]]>Not Found
The requested URL /blog/blog/ was not found on this server.
The url has the word ‘/blog’ written twice instead of once as part of the url.
Please help! I have spent ages trying to figure out what the problem is but since I am not a php programmer it seems it maybe out of my grasp. I have identified where the code is that relates to this and compared it to another theme and I can’t seem to see any errors. why is it doing that? how can I fix it?
thanks.
]]>I would really like to style the links “Newer Entries” and “Older Entries,” or at the very least make the “Newer Entries” float right…but I have no idea how!
Can anyone help?
Thank you so much.
]]>In a nutshell, I have several pages that display posts from specific categories and the pagination navigation (cool rhyme!) does not work properly. When navigating to the next page of entries, the original latest entries display over again.
I’m having this problem on several pages but here is an example for starters:
https://www.lowercaseincart.com/WORK/intuit/exhibitions-events
This page uses this line of code to display posts from two categories:
<?php query_posts(array('category__in' => array(3,4))); ?>
The page also uses navigation.php (which has not been altered from its original wordpress state) with this line of code in order to display the navigation links after the posts:
<?php include ( TEMPLATEPATH . '/navigation.php' ); ?>
I’m not a developer, but I’m xhtml/css fluent and decently proficient with editing and creating .php files for wordpress use. Just can’t seem to shake this issue!
Any help would be appreciated! Thank you so much.
]]>i need to know how to show older and newer entries on a page of posts
i have tried a lot of things but cant get it to work. below is my template code
[Large code excerpt removed by moderator per forum rules. Please use the pastebin for all large code excerpts. It works better anyway.]
]]>