Guest User

Untitled

a guest
Jun 25th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.46 KB | None | 0 0
  1. <div id="main" class="col620 clearfix" role="main">
  2.     <!-- Starta wordpress loopen -->
  3.     <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  4.                    
  5.     <!-- Wrappa varje artikel i en article tag för att kunna styla content -->
  6.     <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
  7.                        
  8.         <header>
  9.         <!-- Här ser du hur man länka en rubrik till dess content, the_permalink() i en <a href>. -->
  10.             <h2 class="post-title-header"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  11.                            
  12.             <!-- 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. -->
  13.             <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>
  14.                        
  15.         </header> <!-- end article header -->
  16.                        
  17.         <!-- wrappa något runt the_content() så du kan styla det lätt -->
  18.         <section class="post_content clearfix">
  19.             <?php the_content(); ?>
  20.         </section> <!-- end article section -->
  21.         <footer>
  22.             <p class="tags"><?php the_tags(); ?></p>
  23.         </footer> <!-- end article footer -->
  24.                    
  25.     </article> <!-- end article -->
  26. <!-- 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