Support » Themes and Templates » Need Help With "Post Format" Code Placement

Need Help With "Post Format" Code Placement

  • Hi everyone,
    I’m trying to figure out the post formats, yet am still unable to get a grasp of it. I will only use it for quote posts. I’ve found few php functions placed in the loop, however my trials always return errors. Could you please tell me what code of post format function should go where?

    Help perfectly appreciated

    `<div id=”content”>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>

    <div <?php post_class() ?>>
    <h1>“><?php the_title(); ?></h1>

    <p style=”margin-top:-10px”><?php the_content(”); ?></p>


    <?php endwhile; ?>

    <div class=”pagination”>
    <div class=”older”>
    <h4><?php next_posts_link(‘< older posts’) ?></h4>
    <div class=”newer”>
    <h4><?php previous_posts_link(‘fresher posts >’) ?></h4>

    <?php else : ?>
    <h1>Oh, no!</h1>
    <p>Sorry, but there are currently no posts available.</p>
    <h4 style=”font-size: 1em”>“>return to portal</h4>

    <?php endif; ?>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Need Help With "Post Format" Code Placement’ is closed to new replies.