mkallen
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: category excluded on home page throws off number of posts per pageWow! Thanks, Otto42. That’s exactly what I needed!
Forum: Fixing WordPress
In reply to: posts_nav_link not workingI used a different template (university mandated), but I tried to base it on the default template. When I changed to the default template, the next and previous page links worked! What could I have left out?
Forum: Fixing WordPress
In reply to: how to exclude one category from recent posts?I use this on my home page:
<?php
if (is_home()) {
query_posts(“cat=-12”);
}
?>It excludes the 12th category from my home page, but includes it in archives.
Forum: Everything else WordPress
In reply to: I need a good Host, feedback?I use enom.com and have had no problems after 3 years.
Forum: Fixing WordPress
In reply to: posts_nav_link not workingIs next_posts the same as next_posts_link? next_posts goes in the loop on a single post page. posts_nav_link goes on the home page. I have
<div style=”text-align:center;”>
<?php posts_nav_link(‘ · ‘, ‘previous page’, ‘next page’); ?>
</div>on my home page, but it doesn’t work either. In the address bar, it indicates that it is showing a previous page:
https://www.depts.ttu.edu/agriculturalsciences/news/index.php?paged=2
But the entries are always the most recent.
Forum: Fixing WordPress
In reply to: posts_nav_link not workingThe navigation has never been in the loop.
Forum: Fixing WordPress
In reply to: posts_nav_link not workingMy category pages use an archive template with the following code:
<div class=”navigation”>
<div class=”alignleft”><?php next_posts_link(‘« Previous Entries’) ?></div>
<div class=”alignright”><?php previous_posts_link(‘Next Entries »’) ?></div>
</div>I originally had this on the home page, but it wasn’t working.
Forum: Fixing WordPress
In reply to: posts_nav_link not workingForum: Fixing WordPress
In reply to: posts_nav_link not workingYes, my permalinks are working.
Forum: Fixing WordPress
In reply to: Archiving posts after specified periodladydelaluna – Thanks for your response. I will give the plug-in a try.
Forum: Fixing WordPress
In reply to: Archiving posts after specified periodLike you said, WP archives everything by putting it in the database. On the index page, I would like to display all posts for the last 30 days. When a post has been on the index page for 30 days, it would then “roll onto” an archive index page. I’m not quite sure how I want to format my archive index – probably by month and category. Thanks for your help.