So my homepage displays the X latest posts, and this is great.
But is there a way, at the bottom of my X posts, to add a link to “next posts” ?…
Is there an option for such thing ? What would be the right url ?…
Thanks in advance !
]]>I want this line of text “Previous Post Next Posts” moved to the top of the column of post excerpts. I know the list of excerpts is from a theme, but the previous next is not. I want this line to be at the top and made sticky so that it sticks below the NAVIGATION menu. I don’t know if this needs to be something I customise in a menu or whether I need a plugin, but Im hoping it can be done with an additional CSS
Can anyone help?
]]>I would like to know how i can personalize preview and next posts buttons. I mean it’s in English, but i want to to translate it to Polish.
I try to get with it on my own, and it works but only with preview posts button.
Thanks you in advance!
]]>So, the first couple of things I need help with are to do with the blog section. I would really like my article’s “static page” to have the “next page” option at the bottom. It would also be nice that, once inside of an article, there is a “previous” and “next” link.
At this point, I think there are articles that will not be locate-able without searching specifically for them by title- since not everything is browse-able.
I do not even have the option to view more inside of a specific category.
The next thing I would like some advice on is the footer section here.
There is an image that shows up when I use the footer. Is there a way to change this image?
Since I have been all over this theme, I assume that these things must be changed in the code. I am very new to this so any help in locating and changing this would be appreciated!
Kali
]]>I’ve asked this question elsewhere with no joy. The idea I think is simple. I want to take the current post position and then show the next 3 posts in that custom post type in my sidebar. Right now I am pulling the current post and excluding that post fine, but it’s not really what I am looking for. Thi sis my current code:-
<ul>
<?php
$currentID = get_the_ID();
$query = new WP_Query(array('post_type' => get_post_type($post->ID), 'posts_per_page' => 5, 'order' => 'DESC', 'orderby' => 'date', 'offset' => $offset, 'page' => $page, 'post__not_in' => array($currentID) ));
while ( $query->have_posts() ) : $query->the_post();
?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; wp_reset_postdata(); ?>
</ul>
The reason I need to do this is because the posts will be number 1,2, 3 etc so when you are on post 3 I want to show 4, 5, 6.
Thanks
Glennyboy
I’ve tried several things, such as including this to the end of our code:
<?php posts_nav_link(); ?>
and
<?php next_posts_link('More Articles ?','') ?>
But all I get doing that (or variations thereof that I found), is a “Next Page ?” link that goes to /page/2/. The problem here is when clicked, the same homepage appears, but the URL in the address bar shows our-site.com/page/2/, so the next set of posts aren’t displayed on the page.
What do I need to do to add a link to take the user to some sort of an archive-type page which displays all posts–and preferably starting on that page with the 11th most recent post?
Here’s the code that we have on the index.php template to display the 10 most recent posts:
<div id="content-secondary" class="clearfix">
<?php $commentImage = '<img src="' .
get_bloginfo('template_directory') .
'/images/comments-bubble.gif' .
'" alt="comments: " />'; ?>
<?php $loop2_posts = new WP_Query("showposts=15&offset=1&cat=-14,-15"); /* second loop */ ?>
<?php if($loop2_posts->have_posts()) : ?>
<?php while($loop2_posts->have_posts()) : $loop2_posts->the_post(); ?>
<div class="post clearfix" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
<?php the_title(); ?>
</a></h2>
<?php if (get_post_meta($post->ID, "image", $single = true)) : ?>
<p class="associatedImage"> <img alt="<?php the_title_attribute(); ?>" src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo get_post_meta($post->ID, "image", $single = true); ?>&w=64&h=48&zc=1&q=80" /> </p>
<?php else : ?>
<!-- no pic -->
<?php endif; ?>
<div class="entry">
<?php the_excerpt(); ?>
<span class="commentsCount">
<?php comments_popup_link('', $commentImage.'1', $commentImage.'%'); ?>
</span> </div>
</div>
<?php endwhile; ?>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; /* /second loop */ ?>
<?php unset($loop2_posts); ?>
<?php next_posts_link('More Articles »','') ?>
</div>
<!-- #content-secondary -->
]]>Thoughts?
]]>