WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Not all posts showing and nav not working (4 posts)

  1. toxiccosmos
    Member
    Posted 4 years ago #

    I'm working on redesigning my site and am having some trouble.
    http://varriaga.com/artwork/

    I am calling my posts by categories and displaying their associated thumbnails. Problem is, not all the posts are showing. The above page is only showing 11 posts, when I have about 20 in that category.

    I'm not sure what I did wrong, I copied the code that I used for my last site design (which used the same thumbnail structure) but it's not working. I made one change in the navigation - I added image links - but the problem existed before I changed that.

    Thumbs/posts:

    <div id="featuredwork_art">
       	        <div id="portcontent">
    			<?php if (have_posts()) : ?>
                <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts('posts_per_page=12&cat=6&paged='.$paged); ?>
                <?php while (have_posts()) : the_post(); ?>
    			<div class="portpost">
    			</div>
    			<?php endwhile; ?>
    			<div id="recent-content">
    				<ul class="recent-projects-port">
                			<li>
    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts('posts_per_page=12&cat=6&paged='.$paged); ?>
    <?php while (have_posts()) : the_post(); ?>
    <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><img src="<?php echo get_option('home'); ?>/wp-content/thumbs/<?php
    // this is where the custom field prints images for each Feature
    $values = get_post_custom_values("Thumb"); echo $values[0]; ?>" alt="" /></a>
    <?php endwhile; ?>
                			</li>
                	</ul>
                </div>

    Navigation:

    <div class="port-navigation">
                <span class="previous-entries"><?php previous_post_link('%link', '<img src="/images/back.gif">', TRUE); ?>
    
    </span> | <span class="next-entries"><?php next_post_link('%link', '<img src="/images/next.gif">', TRUE); ?>
    </span>
               </div>

    I'd appreciate any help.
    Thanks. :]

  2. jennifinch
    Member
    Posted 4 years ago #

    HI There,

    I think it is this line of code which contains the argument to show 12 posts, no?

    query_posts('posts_per_page=12&cat=3&paged='.$paged); ?>

    Maybe play around with that?

  3. toxiccosmos
    Member
    Posted 4 years ago #

    hm. That's odd. It shows 12 when I tell it to show 13.. and my navigation still isn't working to show that there are even more.

    Any thoughts? I'm thoroughly confused. haha :]

  4. jennifinch
    Member
    Posted 4 years ago #

    I looked at the site again today and I see the navigation that advances to the "next" and "previous" pages of your gallery.

    I do see that although the first page of the gallery now shows 12 images, there is actually an post entry in the first position called, "creatures-of-the-dark" that shows in the code, but not on the site.

    Let me know what your issues are, we may need to reword your situation and repost it to get more specific support.

Topic Closed

This topic has been closed to new replies.

About this Topic