schultzy
Forum Replies Created
-
I update the plugin this morning and it no longer works on pages. I deactivated and reactivated, but that did not work either.
Forum: Alpha/Beta/RC
In reply to: the_excerpt tagI am also having the same issue.
Forum: Fixing WordPress
In reply to: Two queries on same pageThat was one of the first things I checked. And if I remove that line, I get PHP errors. It is probably one of the plugins I am using since I have about a dozen running.
I appreciate the help though. I actually I am going to change themes and re-order things so I am going to close this as resolved.Forum: Fixing WordPress
In reply to: Two queries on same pageAnyone have any ideas?
Forum: Fixing WordPress
In reply to: Two seperate post sectionsLooks like it is working, will make as resolved and if I have further issues, will address them seperate.
Forum: Fixing WordPress
In reply to: Two seperate post sectionsOk, I think I got it. If someone could just take a look at the code and see if they see anything wrong. As far as I can tell, it works.
<font size="5">Latest Blog Entry</font> <!-- begin news loop --> <?php $my_query = new WP_Query('category=3&showposts=1'); ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <small>By <?php the_author() ?> | <?php the_time('F j, Y'); ?> <?php edit_post_link('(edit)'); ?></small> <div class="entry"> <?php the_content('Read the rest of this entry »'); ?> </div> <p class="postmetadata"><?php the_tags('Tags: ', ', ', '.<br />'); ?> Read more from <?php the_category(', ') ?> | <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p> </div> <?php endwhile; ?> <!-- end news loop --> <font size="5">Latest Story</font> <!-- begin story loop --> <?php query_posts('cat=5,25,21,26,19,10,27,29,24&showposts=1'); ?> <?php while (have_posts()) : the_post(); if( $post->ID == $do_not_duplicate ) continue; ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <small>By <?php the_author() ?> | <?php the_time('F j, Y'); ?> <?php edit_post_link('(edit)'); ?></small> <div class="entry"> <?php the_content('Read the rest of this entry »'); ?> </div> <p class="postmetadata"><?php the_tags('Tags: ', ', ', '.<br />'); ?> Read more from <?php the_category(', ') ?> | <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p> </div> <?php endwhile; ?> <!-- end story loop -->Forum: Fixing WordPress
In reply to: Two seperate post sectionsanyone have an idea?
Forum: Fixing WordPress
In reply to: Two seperate post sectionsI took the example from the page you directed me to and came up with the following code.
<?php $my_query = new WP_Query('category=3&showposts=1'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID;?> <h1>Latest Blog Entry</h1> <div class="post" id="post-<?php the_ID(); ?>"> <h2><a>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <small>By <?php the_author() ?> | <?php the_time('F j, Y'); ?> <?php edit_post_link('(edit)'); ?></small> <div class="entry"> <?php the_content('Read the rest of this entry »'); ?> </div> <p class="postmetadata"><?php the_tags('Tags: ', ', ', '.'); ?> Read more from <?php the_category(', ') ?> | <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?> </div> <?php endwhile; ?> <?php if (have_posts()) : while (have_posts()) : the_post(); if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?> <h1>Latest Story</h1> <div class="post" id="post-<?php the_ID(); ?>"> <h2><a>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <small>By <?php the_author() ?> | <?php the_time('F j, Y'); ?> <?php edit_post_link('(edit)'); ?></small> <div class="entry"> <?php the_content('Read the rest of this entry »'); ?> </div> <p class="postmetadata"><?php the_tags('Tags: ', ', ', '.'); ?> Read more from <?php the_category(', ') ?> | <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?> </div> <?php endwhile; endif; ?>So, it gives me a single post from category 3 and then follows with the other posts based on the default number of posts to show.
How do I specify that I want 1 post form categories x,y,z like I did for the first part of the loop?
Forum: Fixing WordPress
In reply to: Two Seperate Categories On One Page?I would be interested in that code. I am looking to do something similar. On the top of the page post the my latest “news” post. And then under it post my latest story.
Forum: Everything else WordPress
In reply to: Bluehost switching to PHP 5-problems occuringI think I have my site (hosted by BH) switched over to PHP5, but maybe not. It overwrites the .htaccess file and my site wouldn’t come up. So I editted it back to:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
Then it worked. Still testing out the plug-ins though.
Forum: Everything else WordPress
In reply to: header image by categoryIt works as planned. Well, kind of. I still have to tweak some code to get placement right on my site, but the solution worked. Thanks.
Forum: Everything else WordPress
In reply to: header image by categoryThanks for the quick response. I will give it a shot this afternoon and report if it worked or not. Thanks again.
Forum: Fixing WordPress
In reply to: Blog by email: No body showingI recently installed WordPress and have been trying to blog by email and was not getting the body of the email to post. I have tried using the code riggie11 posted, but it still isn’t working correctly. This is what I got when I tried doing an email post.
I am testing out the Blog By Email =
feature of Word=20
Press. I am not sure if I will keep it even if it works. I =
run the=20
risk of the email address getting SPAMMED and what gets sent to the =
email=20
address gets posted. I will just have to wait and=20
see.