I am trying to build a custom theme for my wordpress site, I am putting it together from a bootstrap theme I found. This is my first foray into developing with php, and I've just finished learning to list posts. Since I have two posts, I haven't bothered to figure out how to break the loop into multiple pages (ie. show 10 posts per page and navigation at the bottom).
What I am trying to learn is how to make the permalinks work in the theme I am building. I get that wordpress works by making queries and displaying those queries. I don't understand how to obtain arguments for the query, or if that is how I get the permalinks and pages to work.
I haven't figured out the right google search parameters to resolve my confusion. So what should I be researching, or perhaps a tutorial?
ps. sorry if I get the tags wrong, or if this isn't stackexchangey enough, I know it wouldn't be for the original.
You see I don't know how to fill in the else for my
wp-content/themes/name/index.php file. This is the structure I have setup thus far.
<?php $last_date = ''; if( is_home() ) : while( have_posts() ) : the_post(); ?> <?php $the_date = the_date( 'Y', '', '', false ); if ( false ) : //$the_date != $last_date ) : ?> <!-- Year HTML --> <?php endif; $last_date = $the_date; ?> <!-- Blog Entries (titles, author, tags, date, excerpt --> <?php endwhile; else : ?> <!-- No Frigging Clue! --> <?php endif; ?>