calex3710
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: next/prev posts links not workingThe plugin worked! Seem to be no further issues, so I will close this topic. Thanks again.
Forum: Fixing WordPress
In reply to: next/prev posts links not workingChanging 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!
Forum: Fixing WordPress
In reply to: next/prev posts links not workingThanks, 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.
Forum: Fixing WordPress
In reply to: next/prev posts links not workingThis is the only query on the page…so do I just replace WP_Query with query_posts?
Forum: Fixing WordPress
In reply to: next/prev posts links not workingThanks. 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).
Forum: Fixing WordPress
In reply to: next/prev posts links not workingThanks, 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.
Forum: Fixing WordPress
In reply to: next/prev posts links not workingLike 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.
Forum: Fixing WordPress
In reply to: Widget Text Blurry in IE OnlyDo the widgets use animation? If so this might be an issue with ClearType. See:
Forum: Fixing WordPress
In reply to: Help with get_post breaking conditional tagCurtiss — 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;?>Forum: Fixing WordPress
In reply to: Help with get_post breaking conditional tagDarn it, still does nothing. Any other possibilities? Thanks again.
Forum: Fixing WordPress
In reply to: Help with get_post breaking conditional tagThanks 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();?>