thomas514
Forum Replies Created
-
Do I have any option here?
Thanks!Sorry guys, one last thing here….
I need to make a “/” between all my pages link, I have something like this:
page 1 page 2 page 3 page 4 page 5 page 6I would like to do this:
page 1 / page 2 / page 3 / page 4 / page 5 / page 6 /So I went to wp-includes/post-template.php page, I changed the page link, and I had this:
page 1 / page 2 / page 3 page 4 / page 5 / page 6 /But you can see that there is the “/” missing after “page 3”, this is because we are located on page 3, therefore there is no link on “page 3”, which is fine, but I just want to add the “/” after, can you guys tell me where I can add this in post-template.php?
Thanks!
[No bumping. If it’s that urgent, consider hiring someone.]
+ short precision to the other guys, I had to remove the line
<?php query_posts('p=129'); ?>to make page links work properly, ensure that you post is asked for display before you page is loaded 😉Thanks…
& really sorry, really bad sleep last night lol, we can also put it right after<?php while (have_posts()) : the_post(); ?>
Thank to both of you guys 😉Thanks a lot Esmi, but my brain is totally crashed today, I did not understand where I have to place my coding: <?php wp_link_pages(); ?>
I created a page content_article1.php, in this page, I display an article this way, where do I paste the link pages coding?
<?php query_posts('p=129'); ?> <?php if (have_posts()) : ?> <?php wp_link_pages('before=<p>&after=</p>&next_or_number=number&pagelink=page %'); ?> <?php while (have_posts()) : the_post(); ?> <?php the_content('Read the rest of this entry »'); ?> <?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; ?>I tried after the condition, it does not work here, nothing displays…
Thanks againForum: Fixing WordPress
In reply to: How to list archives menu yearly and monthlyThanks for the reply keesiemeijer!
But I have this error message when I add the follofing code:<?php query_posts('posts_per_page = -1'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php $Year= get_the_date( 'Y' ); $Month = get_the_date( 'F' ); $Day = get_the_date( 'j' ); ?> <?php if($Year != $temp_year) : ?> <h2><?php echo $Year ?></h2> <?php endif; ?> <?php if($Month != $temp_month || $Year != $temp_year) : ?> <h3><?php echo $Month; ?></h3> <?php endif; ?> <li><span><?php echo $Day; ?></span><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li> <?php $temp_year = $Year; $temp_month = $Month; ?> <?php endwhile; endif; ?>Fatal error: Call to undefined function get_the_date()
Forum: Fixing WordPress
In reply to: How to display last 4 posts of cat 2,3 &7 (for ex.)?works just great!
Thanks keesiemer!!Forum: Fixing WordPress
In reply to: How to display last 4 posts of cat 2,3 &7 (for ex.)?Here is now what I have in my query now, it displays 4 last posts from cat3:
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('cat=3&posts_per_page=4&paged=' . $paged);But still having troubles to display 4 last posts of my website, post can come from different categories: I want to name them (for ex: cant 2, 3 & 7).
So I want to display 4 posts in total, from the new one to the oldest one (each of those 4 posts can come from one of those cat).
Forum: Fixing WordPress
In reply to: How to use 2 different css file?How… Thanks a lot hzlzh!!!