I'm trying to make a grid layout theme in wordpress based off of underscore

I know there’s other bases that already have a grid, but I want do it this way.

So I looked around and I’m trying to uses this as a base

http://www.developphp.com/page.php?id=396

Problem I have is what to use as the values for the rows and columns. I am going to look it up in the WP database files, but I also wanted to check the definition of the has_post function, expecting to see familiar php code like SELECT statements and if $somevariable < 1, then false, but instead all I see is

function have_posts() {
	        global $wp_query;
	
	        return $wp_query->have_posts();
	}

so uh, help please? how does the have_posts function actually work?

EDIT
This post has been reformatted by enclosing the code block in 3 backticks
```
on their own lines.

how does the have_posts function actually work?

A good place to start would be http://codex.wordpress.org/Class_Reference/WP_Query

It has an overview of the WP_Query class as well as the have_posts() method, among others of course.

Thanks. I looked around and found out I’m better off just using CSS.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.