Title: [Plugin: Grid Archives] Category parameter
Last modified: August 20, 2016

---

# [Plugin: Grid Archives] Category parameter

 *  Resolved [niajahi](https://wordpress.org/support/users/niajahi/)
 * (@niajahi)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-grid-archives-category-parameter/)
 * I’m not able to get this to display the correct category, (on local machine).
   When I save the page with a particular category tag, each archived page displays
   the same one even though have different category tags.
    [grid_archives category
   =”Category 1″] [grid_archives category=”Category 2″] [grid_archives category=”
   Category 3″]
 * Whichever is saved last, all will show that category.
 * Any help?
 * [http://wordpress.org/extend/plugins/grid-archives/](http://wordpress.org/extend/plugins/grid-archives/)

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

 *  Thread Starter [niajahi](https://wordpress.org/support/users/niajahi/)
 * (@niajahi)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-grid-archives-category-parameter/#post-2360986)
 * Just found out that it’s to do with the non-expire cached copy of the filtered
   posts array in grid-archives.php around line 76. If I comment that bit out, it
   works fine.
 * Is it safe to do this?
 *  Thread Starter [niajahi](https://wordpress.org/support/users/niajahi/)
 * (@niajahi)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-grid-archives-category-parameter/#post-2360988)
 * Ok, a fix.
 * Line 76 in grid-archives.php
 * if($posts = get_transient(GRID_ARCHIVES_POSTS_TRANSIENT_KEY)) {
 * should be
 * if($posts == get_transient(GRID_ARCHIVES_POSTS_TRANSIENT_KEY)) {
 * …a double equal sign instead of a single.
 * Cheers.
 *  Plugin Author [samsonw](https://wordpress.org/support/users/samsonw/)
 * (@samsonw)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-grid-archives-category-parameter/#post-2361058)
 * Hi niajahi,
 * Thanks for the help. I’ve checked the code, but the original code was correct,
   it should be only 1 equal sign:)
 * As you said, the reason is because grid-archives will do a cache for your current
   posts, but it will only cache 24 hours if no new posts are created. Once you 
   create a new post, the cache will be invalided.
 * You can also manually expire/invalid the cache by clicking the “Save Changes”
   button without changing any configuration. (I will add a refresh button in the
   future release.)
 *  Thread Starter [niajahi](https://wordpress.org/support/users/niajahi/)
 * (@niajahi)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-grid-archives-category-parameter/#post-2361059)
 * Hi Samsonw, I tried putting that back to a single equal sign, and refreshed the
   cache, but no luck. Adding a new post to a category will change all the views
   for every page to that updated one.
 * Commenting out that caching section seems to be the only option for me at the
   moment.

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

The topic ‘[Plugin: Grid Archives] Category parameter’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/grid-archives.svg)
 * [Grid Archives](https://wordpress.org/plugins/grid-archives/)
 * [Support Threads](https://wordpress.org/support/plugin/grid-archives/)
 * [Active Topics](https://wordpress.org/support/plugin/grid-archives/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/grid-archives/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/grid-archives/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [niajahi](https://wordpress.org/support/users/niajahi/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-grid-archives-category-parameter/#post-2361059)
 * Status: resolved