Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="main" class="col620 clearfix" role="main">
- <!-- Starta wordpress loopen -->
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <!-- Wrappa varje artikel i en article tag för att kunna styla content -->
- <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
- <header>
- <!-- Här ser du hur man länka en rubrik till dess content, the_permalink() i en <a href>. -->
- <h2 class="post-title-header"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
- <!-- Det här är lite special från Bones utvecklingstemat. Det används för att få ut lite info om posten så som, tiden, författare osv. -->
- <p class="meta"><?php _e("Publicerad", "bonestheme"); ?> <time><?php the_time('F j, Y'); ?></time> <?php _e("av", "bonestheme"); ?> <?php the_author_posts_link(); ?> <?php _e("i", "bonestheme"); ?> <?php the_category(', '); ?>.</p>
- </header> <!-- end article header -->
- <!-- wrappa något runt the_content() så du kan styla det lätt -->
- <section class="post_content clearfix">
- <?php the_content(); ?>
- </section> <!-- end article section -->
- <footer>
- <p class="tags"><?php the_tags(); ?></p>
- </footer> <!-- end article footer -->
- </article> <!-- end article -->
- <!-- Det finns lite mer kod längre ner på den här sidan men är ser du iaf hur jag har gjort min mark up för artiklar -->
Add Comment
Please, Sign In to add comment