Ryan Fitzer
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: New Comment does not generate an e-mailWhat type of server is hosting the site? I had the same problem because the site was hosted on a Microsoft server. Everything worked fine except the contact form and email notification. Login to your host and check the specs.
Forum: Plugins
In reply to: Page VisibilityThanks HandySolo. In working with it I’ve found that it is putting the title “Pages” back into my horizontal nav and I’ve tried the extent of my skills (a little better than “cut & paste”) to get rid of it but to no avail. Any idea how to keep this from happening? Your help is much appreciated.
Forum: Plugins
In reply to: Page VisibilityWell, crap.
Forum: Themes and Templates
In reply to: linking images to postsTried using this in a double loop and for some reason it will only pull the thumbnails for the first loop but not the second. Otherwise it works excellently. Any ideas? Here’s the code I’m using for the second loop:
<?php $my_query = new WP_Query('cat=7&showposts=2'); ?><?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="entry">
<div class="postthumb"><a href="<?php the_permalink(); ?>"><img src="<?php post_image('', true, false); ?>" /></a></div>
<div class="posttext">
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
<h4><?php the_excerpt(); ?></h4>
</div><div class="clear"></div>
</div>
</div>
<?php endwhile; ?>
Forum: Plugins
In reply to: is_single ParametersThat was it! Thanks. My problem was I was using
is_category.Forum: Plugins
In reply to: Navigation ProblemFrom another thread:
Here’something I use in the sidebar to show just the most recent titles of specific categories.
http://wordpress.org/support/topic/50315/page/2?replies=35#post-398325
Forum: Themes and Templates
In reply to: Display by Category home.php templateExcellent piece of work Kafkaesqui.
Forum: Plugins
In reply to: Conditional Statement for a Specific Category postThanks so much! That was what I needed.
Forum: Plugins
In reply to: Show latest post per category on homepageThis might help. I think I had the same problem as you.
http://wordpress.org/support/topic/76805?replies=5
This gives you a double loop on the front page that shows two posts from category 1 and from category 2. Of course you can change which categories are shown. I’m not sure how many loops you can put on a page, I’ve only tried two.
Here’something I use in the sidebar to show just the most recent titles of specific categories.
http://wordpress.org/support/topic/50315/page/2?replies=35#post-398325
Forum: Plugins
In reply to: Multiple LoopsNot sure how that would work but I think I read something on it. I’ll look around and post back when I get it.
Forum: Fixing WordPress
In reply to: List of 5 Most Recent Posts Within a CategoryThis code is great and something I’ve seen in action on a lot of sites. Thanks so much. For those interested I altered it just a tad and put it in my sidebar.php. What I was looking for was to display all the post titles in whatever category I choose. Now I can add or subtract a category at will (manually of course). He’s the code I used (I took out the $cat globals so I could maually select the category):
<div id="sidebar"><?php
$posts = get_posts("category=1" . "&numberposts=20");
if( $posts ) :
?><div class="recent-posts">
<h4>Exhibitions</h4>
<h5>2006-2007</h5>
<ul>
<?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
<li><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?></ul>
</div>
<?php endif; ?>
<?php
$posts = get_posts("category=2" . "&numberposts=5");
if( $posts ) :
?><div class="recent-posts">
<h4>News & Events</h4>
<ul>
<?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
<li><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?></ul>
</div>
<?php endif; ?>
</div>
Forum: Plugins
In reply to: Multiple LoopsSorry. Scratch that last block of code. I forgot to put “php” in a few places. Here’s the correct version:
<?php query_posts('cat=1&showposts=2'); ?><?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3><div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div></div>
<?php endwhile; ?>
</div>
<div class="news">
<h2>News and Events</h2>
<?php $my_query = new WP_Query('cat2&showposts=2'); ?>
<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3><div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div></div>
<?php endwhile; ?>
<?php else : ?>
<h3 class="center">Not Found</h3>
<p class="center">Sorry, but you are looking for something that isn't here.</p><?php endif; ?>
Forum: Plugins
In reply to: Multiple LoopsIt figures. Right after I posted this I found my answer. Here is where I got it:
http://comox.textdrive.com/pipermail/hackers/2005-January/003578.html
And here is how the loop is formatted:
// Show only posts in category 1 "current"
<?php query_posts('cat=1&showposts=2'); ?><?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="current" id="post-<?php the_ID(); ?>">
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3><div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div></div>
<?php endwhile; ?>
// Show only posts in category 2 "news"
<? $my_query = new WP_Query('cat2&showposts=2'); ?><? while ($my_query->have_posts()) : $my_query->the_post(); ?>
<div class="news" id="post-<?php the_ID(); ?>">
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3><div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div></div>
<? endwhile; ?>
<?php else : ?>
<h3 class="center">Not Found</h3>
<p class="center">Sorry, but you are looking for something that isn't here.</p><?php endif; ?>
This is altered to only show the post title and post content. You’ll have to put all the post meta back in if you want it to be back to the default.
Forum: Fixing WordPress
In reply to: Several problems with WPSorry sombra2 but I don’t see any of the problems your having. I see the “more” tag working on your first post, separations between paragraphs, text in bold, images are all centered… As far as double line spacing, the only way to achieve that (without starting a new paragraph for line) is to alter your
line-heightin the CSS. I’m not sure but it sounds like make your browser in displaying it without styling, but you said that you’ve tried it on other browsers. I’m at a loss. Does anybody else see theses issues exemplified?Forum: Fixing WordPress
In reply to: Several problems with WPIs it the website in your profile or is it a different one? Give us a link so we can see what you mean.