Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter calex3710

    (@calex3710)

    The plugin worked! Seem to be no further issues, so I will close this topic. Thanks again.

    Thread Starter calex3710

    (@calex3710)

    Changing the permalinks to the default worked, so I will try out the plugin to see if I can keep my custom permalinks structure working. Thanks for your help!

    Thread Starter calex3710

    (@calex3710)

    Thanks, the link now shows up! However, because the original page is:www.example.com/spotlight, the next_posts_link calls the link http://www.example.com/spotlight/page/2 … and clicking on it takes me to a “this is embarrassing/page not found” page — which has my header/footer but nothing in the body.

    Is this my page.php file? I tried adding the code into page.php as well but it made no difference. Or does this have something to do with the permalink structure?

    Really appreciate your help.

    Thread Starter calex3710

    (@calex3710)

    This is the only query on the page…so do I just replace WP_Query with query_posts?

    Thread Starter calex3710

    (@calex3710)

    Thanks. Hmm, previous_posts_link and next_posts_link seem to not show up at all (while previous_post_link and next_post_link do show up but link to the single posts).

    Thread Starter calex3710

    (@calex3710)

    Thanks, but I know my way around text editors. The forum messed with my alignments and I was a bit sloppy about not removing some extra divs/PHP code that I was playing around with before I posted (my apologies).

    It’s WordPress/PHP I’m fairly new to. Thanks to your help, my code is currently set up as:

    <?php $paged = (intval(get_query_var('paged'))) ? intval(get_query_var('paged')) : 1;
    $recentPosts = new WP_Query();
    $recentPosts->query('showposts=3'.'&paged='.$paged . 'category_name=spotlight');
    while ($recentPosts->have_posts()) : $recentPosts->the_post(); ?>
    
    <?php if ( has_post_thumbnail() : ?>
    <div id="postsection" class="section">
    	<div class="postphoto">
    	         <?php the_post_thumbnail());?>
    	         <div class="slidedate">Aug 2nd, 2011</div>
    	         <div class="slidetitle"><?php the_title(); ?></div>
    	</div>
    	<div class="posttext">
    		<?php the_content(); ?>
    	</div>
    	 <br class="clear" />
    </div>
    <?php endif; ?>
    <?php endwhile; ?>
    <?php previous_post_link('%link', 'Prev posts', TRUE); ?>
    <?php next_post_link('%link', 'Next posts', TRUE); ?>

    And BTW, I do want it to only pull in posts with thumbnail photos. This works as before, but I’m still not sure how to bring in previous/next posts as a set of three within the same template structure. Currently the previous_post_link and next_post_link link to one previous and following post, but those posts don’t have their own templates, of course, so they don’t show up when clicked.

    This code appears in the template for a page called ‘spotlight’ (the category of the posts is also ‘spotlight’). What I want is a way to have the previous/next posts show up in a set of three in the same template structure. Does this make sense? Thanks for your help and I apologize for the issues with my post before.

    Thread Starter calex3710

    (@calex3710)

    Like I said, I’m learning. The code works just fine except for the next/prev function. Tell me what’s wrong with it and I’ll fix it.

    Do the widgets use animation? If so this might be an issue with ClearType. See:

    http://brenelz.com/blog/ie-cleartype-blurry-text-solution/

    Thread Starter calex3710

    (@calex3710)

    Curtiss — that worked! Thank you!! And thanks Esmi, it’s possible your solution works too but I haven’t tried yet.

    I love forum boards — they restore my faith in humanity.

    Complete code below for anyone else facing this problem:

    <?php
    $type = 'Accessories';
    $args=array(
    'post_type' => $type,
    'post_status' => 'publish',
    'paged' => $paged,
    'posts_per_page' => 3,
    'caller_get_posts'=> 1
    );
    $temp = clone $wp_query; // assign orginal query to temp variable for later use
    $wp_query = null;
    $wp_query = new WP_Query($args);
    ?>
    <?php
    while(have_posts()):the_post();
    the_content();endwhile;?>
    <?php $wp_query = clone $temp;?>
    Thread Starter calex3710

    (@calex3710)

    Darn it, still does nothing. Any other possibilities? Thanks again.

    Thread Starter calex3710

    (@calex3710)

    Thanks for your response Esmi. Like what I did below? It doesn’t seem to work (again, forgive me if I’m doing something stupid).

    <?php
    $type = 'Accessories';
    $args=array(
    'post_type' => $type,
    'post_status' => 'publish',
    'paged' => $paged,
    'posts_per_page' => 3,
    'caller_get_posts'=> 1
    );
    $temp = $wp_query;  // assign orginal query to temp variable for later use
    $wp_query = null;
    $wp_query = new WP_Query($args);
    ?>
    <?php while(have_posts()):the_post();
    the_content();endwhile;?>
    <?php wp_reset_query();?>
Viewing 11 replies - 1 through 11 (of 11 total)