KX254F
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: While Loop Limit Post IssueI solved it. If anyone finds this down the road. This is what I did.
Added this to the query: &posts_per_page=3
So now it looks like this:
<?php query_posts(‘cat=4&posts_per_page=3’); ?>
<?php if (have_posts()) : $count = 0; ?>
<?php while (have_posts()) : the_post(); $count <= 2; $count++; ?>Forum: Fixing WordPress
In reply to: While Loop Limit Post IssueAnyone?
Forum: Fixing WordPress
In reply to: While Loop Limit Post IssueNever mind. it’s just making links when I post because of the href’s
Forum: Fixing WordPress
In reply to: While Loop Limit Post IssuePart of it was missing. Nothing crucial but wanted to re-post.
<?php query_posts(‘cat=4’); ?>
<?php if (have_posts()) : $count = 0; ?>
<?php while (have_posts()) : the_post(); $count <= 2; $count++; ?><h4>” rel=”bookmark” title=”<?php the_title(); ?>”><?php the_title(); ?></h4>
<p class=”post-details”><?php _e(‘Posted on’,woothemes); ?> <?php the_time(‘d. M, Y’); ?> | ” rel=”bookmark” title=”Read More”>Read More
<hr /><?php endwhile; ?>
<?php endif; ?>Forum: Fixing WordPress
In reply to: Can't Find Blog Posts. Not Sure WhyI used this line instead and it worked. Thanks for your efforts.
<?php query_posts(
‘posts_per_page=7’
); ?><?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>Forum: Fixing WordPress
In reply to: Can't Find Blog Posts. Not Sure WhySyntax error on line 17.
line 17 is:
‘showposts’=>10,
Forum: Fixing WordPress
In reply to: Can't Find Blog Posts. Not Sure WhyActually I uploaded the wrong blog.php from another directory. I’ve uploaded the new one with this code and there’s and error that reads:
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/suzukibullrun00/weinerttrainingfacility.com/wp-content/themes/incognito/blog.php on line 16
line 16 is:
<?php query_posts(‘showposts’=>10, ‘order’=>DESC)); ?>
and the current code is:
<div class=”grid_10 alpha”>
<?php query_posts(‘showposts’=>10, ‘order’=>DESC)); ?><?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?><h2 id=”post-<?php the_ID(); ?>”>
” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>
<?php the_title(); ?></h2>
<small><?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –></small><div class=”post” id=”post_<?php the_ID(); ?>”>
<h3>“><?php the_title(); ?></h3><?php if(has_post_thumbnail()) { ?>
<img class=”img_wrp_c” src=”<?php tt_img_url($post->ID, 580, 220); ?>” alt=”<?php the_title(); ?>” />
<div class=”break_alpha”></div>
<?php } ?><p><span class=”button_basic”><?php the_time(‘jS F Y’) ?></span> #comment-area”><?php comments_number(‘No Comments’,’1 Comment’,’% Comments’); ?></p>
<div class=”entry”>
<?php the_excerpt(); ?>
</div>
<p>“>Read More</p>
</div><div class=”break_gamma”></div>
<!– .post –><?php endwhile; else : ?>
<div class=”post”>
<h3>Page Not Found</h3>
<p>Looks like the page you’re looking for isn’t here anymore. Try browsing the categories, archives, or using the search box below.</p>
</div> <!– .post –>
<?php endif; ?>
<?php if(function_exists(‘wp_pagenavi’)) { wp_pagenavi(); } ?>
</div>
<div class=”grid_1″>
</div>Forum: Fixing WordPress
In reply to: Can't Find Blog Posts. Not Sure WhyI would like them to post with the theme parameters and styles. Including the thumbnail image, read more button. The theme seemed to be broken and not returning the latest posts.
Forum: Fixing WordPress
In reply to: Can't Find Blog Posts. Not Sure WhyThis is now the code:
<div class=”grid_10 alpha”>
<?php query_posts(
‘showposts’=>10,
‘order’=>DESC)
); ?><?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?><h2 id=”post-<?php the_ID(); ?>”>
” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>
<?php the_title(); ?></h2>
<small><?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –></small><div class=”post” id=”post_<?php the_ID(); ?>”>
<h3>“><?php the_title(); ?></h3><?php if(has_post_thumbnail()) { ?>
<img class=”img_wrp_c” src=”<?php tt_img_url($post->ID, 580, 220); ?>” alt=”<?php the_title(); ?>” />
<div class=”break_alpha”></div>
<?php } ?><p><span class=”button_basic”><?php the_time(‘jS F Y’) ?></span> #comment-area”><?php comments_number(‘No Comments’,’1 Comment’,’% Comments’); ?></p>
<div class=”entry”>
<?php the_excerpt(); ?>
</div>
<p>“>Read More</p>
</div><div class=”break_gamma”></div>
<?php endwhile; else : ?>
<div class=”post”>
<h3>Page Not Found</h3>
<p>Looks like the page you’re looking for isn’t here anymore. Try browsing the categories, archives, or using the search box below.</p>
</div> <!– .post –>
<?php endif; ?>
<?php if(function_exists(‘wp_pagenavi’)) { wp_pagenavi(); } ?>
</div>
I’m getting an error on the line that hold the <?php endwhile; else : ?>
Forum: Fixing WordPress
In reply to: Can't Find Blog Posts. Not Sure Whyi’ll give it a try.
Forum: Fixing WordPress
In reply to: Can't Find Blog Posts. Not Sure WhyJust a list of the latest posts. From newest to oldest. 10 posts per page.