WordPress.org

Ready to get started?Download WordPress

Forums

Strange actions.... (3 posts)

  1. juggernott
    Member
    Posted 8 years ago #

    I'm really confused by PHP and XHTML. I literally copy and pasted a section in my sidebar that I wanted to bring up a list of the most recent posts in a seperate category. Here is my current work in progress, have a look at the sidebar:

    http://www.andreanott.com/wordpress

    As you can see, there are to different "Kyle Lawson" things in the right sidebar, both of which are calling for that information from different categories. Now, all of that works just fine, but as you can also see, the second one for some reason is centering the title of the posts. I don't understand because I literally copy and pasted the whole thing. Below is the coding in its exact form in sidebar.php - If anyone has any suggestions as to how to fix this I'd be greatly appreciative.

    Thanks (once again) for the immense help of this forum.

    <img src="http://www.andreanott.com/lawson.png" alt="lawson" align="left" />

    <div class="latest" align="left"><table border="0" width="80">
    <?php c2c_get_recent_posts ($num_posts = 3,
    $format = "<tr><td>%post_date% - </td><td>%post_URL%</td></tr>",
    $categories = '4',
    $orderby = 'date',
    $order = 'DESC',
    $offset = 0,
    $date_format = 'm/d/Y',
    $authors = '',
    $include_passworded_posts = false); ?></table>
    <HR size="1" color="white">
    <center><div class="ul"><LI>Kyle's Blog
    (last updated
    <?php c2c_get_recent_posts ($num_posts = 1,
    $format = "%post_date%",
    $categories = '8',
    $orderby = 'date',
    $order = 'DESC',
    $offset = 0,
    $date_format = 'm/d/Y',
    $authors = '',
    $include_passworded_posts = false); ?>)</LI></UL></DIV></center></div>

    <img src="http://www.andreanott.com/lawson.png" alt="lawson" align="left" />

    <div class="latest" align="left"><table border="0" width="80">
    <?php c2c_get_recent_posts ($num_posts = 3,
    $format = "<tr><td>%post_date% - </td><td align=left>%post_URL%</td></tr>",
    $categories = '3',
    $orderby = 'date',
    $order = 'DESC',
    $offset = 0,
    $date_format = 'm/d/Y',
    $authors = '',
    $include_passworded_posts = false); ?></table>
    <HR size="1" color="white">
    <center><div class="ul"><LI>Adam's Blog
    (last updated
    <?php c2c_get_recent_posts ($num_posts = 1,
    $format = "%post_date%",
    $categories = '8',
    $orderby = 'date',
    $order = 'DESC',
    $offset = 0,
    $date_format = 'm/d/Y',
    $authors = '',
    $include_passworded_posts = false); ?>)</LI></UL></div></center></div>

  2. juggernott
    Member
    Posted 8 years ago #

    Ok, I figured out the root of the problem, but I still don't understand why this would make a difference.

    One of my test posts is a review done using "Structured Blogging". Somehow, the title is given special attributes by this plugin is what I'm thinking and therefore isn't made to veer left like the others. Is there any way to fix this do you figure?

    I look forward to hearing from you!

  3. juggernott
    Member
    Posted 8 years ago #

    anyone? please?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.