Title: Toggle loop with button
Last modified: August 19, 2016

---

# Toggle loop with button

 *  Resolved [thierry.eamon](https://wordpress.org/support/users/thierryeamon/)
 * (@thierryeamon)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/toggle-loop-with-button/)
 * Hi,
 * I’m trying to make a theme with two buttons (list view / grid view). When I click
   the list view, I want to toggle to the loop handling the list view, and when 
   I click the grid view, to another loop.
 * Some help would be much appreciated!
 * edit: found a (wordpress) website as an example for what I’m asking: [http://www.aisleone.net/](http://www.aisleone.net/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [thierry.eamon](https://wordpress.org/support/users/thierryeamon/)
 * (@thierryeamon)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/toggle-loop-with-button/#post-1869676)
 * For those who are interested.. I found a solution using jquery:
 * [Pastebin](http://wordpress.pastebin.com/GstTR1Vp)

Viewing 1 replies (of 1 total)

The topic ‘Toggle loop with button’ is closed to new replies.

## Tags

 * [grid](https://wordpress.org/support/topic-tag/grid/)
 * [list](https://wordpress.org/support/topic-tag/list/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [toggle](https://wordpress.org/support/topic-tag/toggle/)

 * 1 reply
 * 1 participant
 * Last reply from: [thierry.eamon](https://wordpress.org/support/users/thierryeamon/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/toggle-loop-with-button/#post-1869676)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
