some time before I did some editing in my blog: I wanted to have a home-page with an introducting text and a specific category of articles after it. I tried some plugins, but it doesn't work well.
With the help from some board (don't know anymore...) I got to edit the theme like this:
I did a copy of the index.php and renamed it to blog.php
I edited the index.php and at the end, right before
Code:
<?php get_footer(); ?>
Code:
<?php $blog= c2c_get_custom('blog'); if ($blog!= '') { // Which page of the blog are we on? $paged = get_query_var('paged'); query_posts('showposts=6&'.$blog.'&ec3_after=2000-01-01&order=desc&ec3_listing=all&paged='.$paged); //load index to show blog load_template(TEMPLATEPATH . '/blog.php'); } ?>
Now, I get a loop with six articles (showposts=6) of the category defined in the blog-variable.
And with 'paged' I was able to list also older articles. But this is not working anymore. I get the page and the articles in it, but if I click on "older entries" (with the link http://www.gocart-online.com/?paged=2), I get the page with the same six articles.
If I translate the code from above to a link in the browser, like
Code:
http://www.gocart-online.com/?showposts=6&cat=23&ec3_after=2000-01-01&order=desc&ec3_listing=all&paged=2
I also updated to the newest version of the theme, nothing changed...
Mabe some code is not working anymore? $paged = get_query_var('paged'); for example?
Any ideas?
Thank you very much,
Drongo