Need Help With "Post Format" Code Placement (2 posts)

  1. saidtezel
    Posted 2 years ago #

    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; ?>

  2. Kacomp
    Posted 2 years ago #

    Hi there,
    For a good explanation try this tutorial http://www.wphub.com/tutorials/wordpress-post-formats
    What errors are you getting and what exactly are you trying to achieve?


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.