Title: Paginating Subcategories
Last modified: August 19, 2016

---

# Paginating Subcategories

 *  [gward1](https://wordpress.org/support/users/gward1/)
 * (@gward1)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/paginating-subcategories/)
 * Hello,
 * I’m trying to use the solution at this link:
 * [http://wordpress.org/support/topic/336324?replies=16](http://wordpress.org/support/topic/336324?replies=16)
 * Which is supposed to list subcategories in a link format while viewing a parent
   category but also paginate because I’ll have possibly hundreds of subcategories
   per parent category.
 * However the code seems to have numerous syntax errors, some of which I think 
   I’ve figured out.
 * The errors I’m getting are:
    parse error, unexpected ‘)’ in category.php on line
   145 parse error, unexpected ‘}’ in category.php on line 182
 * Please look at the code here: [http://wordpress.pastebin.com/d37909eda](http://wordpress.pastebin.com/d37909eda)
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [gward1](https://wordpress.org/support/users/gward1/)
 * (@gward1)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/paginating-subcategories/#post-1386174)
 * By the way when I delete line 145 there are no syntax errors but no subcategories
   are displayed.
 *  Thread Starter [gward1](https://wordpress.org/support/users/gward1/)
 * (@gward1)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/paginating-subcategories/#post-1386177)
 * OK, I deleted line 145 and now the files work however how do I set the variable
   parent to be more than one value (line 40)? There’s obviously more than 1 parent
   category.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Paginating Subcategories’ is closed to new replies.

 * 2 replies
 * 1 participant
 * Last reply from: [gward1](https://wordpress.org/support/users/gward1/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/paginating-subcategories/#post-1386177)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
