Community Forums › Forums › Archived Forums › General Discussion › Grid Loop: What is it?
Tagged: grid loops
- This topic has 7 replies, 2 voices, and was last updated 11 years, 1 month ago by cdils.
-
AuthorPosts
-
March 4, 2013 at 10:22 pm #24265delectablychicMember
I'm reading about grid loops, but I don't really understand what it is. How is it different from a standard widgetized area on, say, the Lifestyle or Serenity themes?
DelectablyChic!, an online lifestyle publication with a focus on style, dining, travel and more.
March 8, 2013 at 8:54 am #24990cdilsParticipantHi there,
The grid loop can be a mysterious beast when you first start to look into it. 🙂
If you take a standard loop (say on a post archive page that lists the most recent posts), it'll spit out a vertical list. The grid loop, by comparison, adds in some CSS classes. Instead of spitting out a vertical list, it'll display posts in columns (of 2, 3, 4, whatever).
Some StudioPress themes have the grid loop functionality built in (i.e. The Balance Theme) and others do not (i.e. Lifestyle).
The grid loop doesn't have anything to do with widget areas (though I can see how widget areas on a home page could sort of mimic the look of a grid loop).
For themes that don't have the grid loop built in, you can install Bill Erickson's Genesis Grid plugin.
If you really want to get your head swimming, here are some Bill Erickson posts you can walk through (in this order!) that set the stage for the grid loop:
http://www.billerickson.net/code/column-classes/
http://www.billerickson.net/code/use-the-built-in-post-counter/
http://www.billerickson.net/customize-the-wordpress-query/
http://www.billerickson.net/a-better-and-easier-grid-loop/Cheers,
Carrie
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
March 8, 2013 at 3:54 pm #25054delectablychicMemberThanks! Not that I understand all that coding! What do you recommend? Widgets or the grid loop?
DelectablyChic!, an online lifestyle publication with a focus on style, dining, travel and more.
March 10, 2013 at 6:33 pm #25357cdilsParticipantEh, it really depends on what you're wanting to accomplish. If you want the grid layout on the home page as well as your other archive pages, I'd go with the plugin!
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
March 11, 2013 at 8:39 pm #25561delectablychicMemberAlso, I'm assuming it's not possible to split grid loops? For example, have three posts, then an ad, and then grid loops again (which you can with widgets)?
DelectablyChic!, an online lifestyle publication with a focus on style, dining, travel and more.
March 11, 2013 at 8:42 pm #25562cdilsParticipantYou're throwing some curve balls at me! 😉
You couldn't do that with the Grid Loop plugin, but you *could* if you wrote a custom loop. You'd probably be better with the widgets in that case, for the sake of ease.
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
March 11, 2013 at 9:12 pm #25565delectablychicMemberHere lies the problem. There are elements I like about the Grid Loop and ones I like about the featured widget. For example, I'm having a hard time editing appearances of the featured widget (see this post for what I'm looking to do) - the Grid Loop allows me to do this. At the same time, I'd like to keep my layout relatively the same as what I have now (currently using featured widgets in Lifestyle).
DelectablyChic!, an online lifestyle publication with a focus on style, dining, travel and more.
March 16, 2013 at 5:11 pm #28339cdilsParticipantAck! Sorry it's taken me so long to respond. What a week!
I'm going to pop over to your other thread and respond if you want to close this one!
Cheers,
Carrie
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.