Templates and Styling

  1. <?php
    // Common functions for WordPress templates
    ?>
    

  2. function template_post_display () {
    ?>
    <?php
    }
    
  3. <?php while (have_posts()) : the_post(); ?>
    

    <?php endwhile; ?>
    

function template_post_display () {
    if (is_search()) {
        // display post for paged search results
    } else {
        // display post for paged archives
    }
}

#content .navigation {
    display: block; position: relative; list-style: none;
    text-align: center;
    margin-top: 10px; margin-bottom: 60px; margin-left: 0px; margin-right: 0px;
    padding: 0;
}

#content .navigation .prev {
    display: block; position: relative; list-style: none;
    top: 0; bottom: auto; left: 0; right: auto; width: 45%;
    margin: 0; padding: 0;
    text-align: left;
}

#content .navigation .next {
    display: block; position: absolute; list-style: none;
    top: 0; bottom: auto; left: auto; right: 0; width: 45%;
    margin: 0; padding: 0;
    text-align: right;
}

.humanized-history-getting-more {
    position: absolute;
    width: auto; height: auto;
    border: 3px solid #505050;
    padding: 0.25em 1.0em;
    background-color: #777777;
    opacity: 0.85;
    z-index: 10000;
}

Advertisement