letha
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Showposts problemI have been working at this problem….showposts=2 seems to tell wordpress to display the last 2 days of posts. It’s also now numbering my posts before they display. Here’s what I have so far:
<?php if ($_SERVER[‘REQUEST_URI’] == ‘/index.php’ || $_SERVER[‘REQUEST_URI’] == ‘/’) {
require_once(“/home/lethacov/public_html/wordpress/wp-config.php”); // Change this for your path to wp-config.php file
echo ‘<div id=”blogs”>’;
query_posts(‘category_name=Uncategorized&showposts=2’);
while (have_posts()) : the_post();
if( $post->ID == $do_not_duplicate ) continue;
echo ‘<div class=”post”><font size=3, face=”Arial Italic”>’;
echo ‘<h2 id=”post-‘ . the_ID() . ‘”>’ . the_title() . ‘</h2>’;
echo ‘</font><div class=”small”><font size=1>’;
echo the_time(“F j, Y g:i a”) . ‘</font>’;
echo ‘</div><div class=”article”>’;
echo the_content(‘Read the rest of this entry’);
echo ‘</div><font size=1>’;
echo comments_popup_link(‘No Comments’, ‘1 Comment’, ‘% Comments’);
echo edit_post_link(‘Edit’,’ | ‘,”);
echo ‘</font></div>’;
endwhile;
echo ‘<div class=”navigation”><div class=”alignleft”><font size=1>’;
echo posts_nav_link(”,”,’« Previous Entries’);
echo ‘</div></font></div>’;
}
?>I did try the plugin, but it doesn’t work for the problem that I’m having. Any other suggestions?
Forum: Fixing WordPress
In reply to: Showposts problemlethacovey.com
I’m currently trying to work on a fix for all the other pages… but at this point I want the index page working with the correct number of posts
Forum: Fixing WordPress
In reply to: Showposts problemThis is the full loop:
<div id=”blogs”>
<?php query_posts(‘category_name=Uncategorized&showposts=2’); ?>
<?php while (have_posts()) : the_post();
if( $post->ID == $do_not_duplicate ) continue; ?>
<div class=”post”>
<font size=3, face=”Arial Italic”>
<h2 id=”post-<?php the_ID(); ?>”><?php the_title(); ?></h2>
</font>
<div class=”small”>
<font size=1><?php the_time(“F j, Y g:i a”) ?></font>
</div>
<div class=”article”>
<?php the_content(‘Read the rest of this entry’); ?>
</div>
<font size=1><?php comments_popup_link(‘No Comments’, ‘1 Comment’, ‘% Comments’); ?><?php edit_post_link(‘Edit’,’ | ‘,”); ?></font>
<!– <?php trackback_rdf(); ?> –>
</div>
<?php endwhile; ?>
<div class=”navigation”>
<div class=”alignleft”><font size=1><?php posts_nav_link(”,”,’« Previous Entries’) ?></div>
</font></div>
</div>This is all showing on a page outside of WP. I have it set up so it sends it to my index on another url, but for some reason it won’t let me tell it how many posts to show.
I did get the plugin, but it seemed to cause even more problems for me.
Forum: Fixing WordPress
In reply to: Showposts problemThanks danny, I tried that, but it is still showing all the posts…I’m wondering if this is because they are all in Uncategorized.
Forum: Fixing WordPress
In reply to: Blog posts on too many pagesThis is what I did to the Loop (try not to be too upset at the mangled mess):
<?php require_once(“/home/lethacov/public_html/wordpress/wp-config.php”); // Change this for your path to wp-config.php file ?>
<div id=”blogs”>
<?php query_posts(‘showposts=1’); ?>
<?php while (have_posts()) : the_post();
if( $post->ID == $do_not_duplicate ) continue; ?>
<div class=”post”>
<h2 id=”post-<?php the_ID(); ?>”>“><?php the_title(); ?></h2>
<div class=”small”>
<?php the_time(“l”) ?><BR><?php the_time(“F j, Y g:i a”) ?>
</div>
<div class=”article”>
<?php the_content(‘Read the rest of this entry »’); ?>
</div>
<p class=”postmetadata alt”>Posted in <?php the_category(‘, ‘) ?> | <?php comments_popup_link(‘No Comments’, ‘1 Comment’, ‘% Comments’); ?><?php edit_post_link(‘Edit’,’ | ‘,”); ?>
<!– <?php trackback_rdf(); ?> –>
</div>
<?php endwhile; ?>
<div class=”navigation”>
<div class=”alignleft”><?php posts_nav_link(”,”,’« Previous Entries’) ?></div>
<div class=”alignright”><?php posts_nav_link(”,’Next Entries »’,”) ?></div>
</div>
</div> <!– end blogs –>I then placed that on the index.htm of the main site (not wp). I’m starting to think that where I placed the Loop is really dynamic template. I’m hoping there is some way to tell the loop to only display if it is the top page.
I hope I didn’t confuse anyone….if you can’t tell, I’m really new to this and kinda winging it (and pretty much falling out of the sky)
Thanks ??
Forum: Fixing WordPress
In reply to: Mirroring my postsI have started with that, however the page I’m working with is not static. I think I may have to play around a bit. Thank you HandySolo
Forum: Fixing WordPress
In reply to: Mirroring my postsI apologize…I’m new to all this. I would like to display my latest posts inside another webpage, where that webpage exists outside the wordpress structure. i.e. How do I pull wordpress posts into a nonwordpress page?