Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 01-13-2010, 09:15 AM
Newbe Newbe is offline
Contributing Member
 
Join Date: 08-16-08
Posts: 451
iTrader: 3 / 100%
Problem with page 2 in wordpress category

Hello

I have a small problem on this page: http://www.celjani.com/

First page shows posts from a certain category and excludes posts from all other categories. This is the code used:

Code:
<?php if (is_home()) query_posts( array( 'showposts'=>5, 'cat' => '-5,-4,-8,-9')); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?>
On the bottom of the page, there is a link with text: "« Starejše novice"

Which would have to open page 2 of that category, but it does not. It opens page 2 but there are still the same posts on the site.

This is the code I use for the link to next page:
Code:
<?php next_posts_link('&laquo; Starejše novice') ?>
Do you have any idea how would I fix that, so when clicking on the link I would actually get a page 2 of that category?

Thank you!
 
Reply With Quote

Advertisement

Advertisement

Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wordpress... Problem with Description Page groogruxking40 Coding Forum 0 09-21-2009 09:30 AM
Bad to duplicate my articles to a feed category page? Stomple SEO Forum 0 01-13-2008 01:25 PM
Wordpress Problem: Links from Write Page waffles Blogging Forum 0 06-12-2007 09:05 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 05:08 AM.
Powered by vBulletin
Copyright © 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC