+ Reply to Thread
Results 1 to 7 of 7

Thread: Need help with code

  1. #1
    MicrotechXP's Avatar
    MicrotechXP is offline x10 Spammer MicrotechXP is an unknown quantity at this point
    Join Date
    Feb 2005
    Location
    USA,California
    Posts
    3,822

    Need help with code

    Alright so on the website that I am fixing up (the design) for myself I am having issues. You can see it here: http://www.dotdosh.com to see what I want changed. Alright on the news posts it shows how many comments are in each post on the top of the post under the title. Now I want to move it down after the post on the right. How would I do that?

    Here is the code:

    PHP Code:
    <?php session_start();?>
    <?php get_header
    (); ?>

    <div class="content">
    <div class="left">
        <?php if (have_posts()) : ?>
    <div class="border-sep">
        <?php ot_ads('category'); ?>
    <div class="title"><h1><?php wp_title(); ?></h1></div>
        <ul class="recent">
        <?php if (is_category()) {
        
    $this_category get_category($cat);
        if (
    get_category_children($this_category->cat_ID) != "") {
        echo 
    "<div class=\"page-children article\">
        <ul>"
    ;
        
    wp_list_categories('orderby=id&show_count=0&title_li=&child_of='.$this_category->cat_ID);
        echo 
    "</ul>
        </div>"
    ; } } ?>
        <?php while (have_posts()) : the_post(); ?>
            <li id="post-<?php the_ID(); ?>">
                <div class="a-box">
                <?php ot_post_gravatar(40);?>
                <a class="a-title" title="<?php the_title(); ?>" href="<?php the_permalink() ?>"><?php ot_title_limit('53'?></a>
                <div class="info">
                <span class="valign">By <?php the_author_posts_link() ?> on <?php the_time('F jS, Y'?> | <?php comments_popup_link('No Comments''1 Comment''% Comments' );?><img src="<?php bloginfo('stylesheet_directory'); ?>/img/icons/comments.gif" alt="<?php comments_number('');?> Comments" border="0" class="valign-img" />
                <?php edit_post_link
                
    'Edit'
                
    ' | '
                
    '<img class="valign-img" src="'get_option('home') .'/wp-content/themes/one-theme/img/icons/edit.gif" alt="Edit this article" border="0" />'); ?></span>
                </div>
                <?php ot_thumb_large(); ?>
                <div class="post">
                    <?php ot_the_content(); ?>
                    <div class="clear"></div>
                </div>
                </div>
        </li>
        <?php endwhile; ?>
    </ul>
        <?php ot_paginate();?>
    <div class="adsense-category-bottom"><?php ot_ads('cat-bottom'); ?></div>
        <?php else : ?>
        <?php include 'error.php';?>
        <?php endif; ?>
    </div>
    </div>

    <?php get_sidebar(); ?>
    <?php get_footer
    (); ?>
    Thank you.

  2. #2
    xPlozion's Avatar
    xPlozion is offline x10 Elder xPlozion is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Delaware, USA
    Posts
    872

    Re: Need help with code

    move
    PHP Code:
    <?php comments_popup_link('No Comments''1 Comment''% Comments' );?><img src="<?php bloginfo('stylesheet_directory'); ?>/img/icons/comments.gif" alt="<?php comments_number('');?> Comments" border="0" class="valign-img" />
    to where you want it. i'm not sure where exactly you want it, just look through the source and find it, then paste it there.

  3. #3
    MicrotechXP's Avatar
    MicrotechXP is offline x10 Spammer MicrotechXP is an unknown quantity at this point
    Join Date
    Feb 2005
    Location
    USA,California
    Posts
    3,822

    Re: Need help with code

    I already have tried moving it to places and it does not work. Any suggestions where?

  4. #4
    xPlozion's Avatar
    xPlozion is offline x10 Elder xPlozion is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Delaware, USA
    Posts
    872

    Re: Need help with code

    where exactly do you want it to be placed? i'm not sure, so i can't tell you where it would go

  5. #5
    Submariner is offline x10Hosting Member Submariner is an unknown quantity at this point
    Join Date
    Dec 2007
    Location
    TN, USA
    Posts
    44

    Re: Need help with code

    Since it is using data from the while (have_posts()) loop it needs to stay inside that loop (i.e. it can be moved anywhere further down but it needs to be before the endwhile; command).


    James

  6. #6
    MicrotechXP's Avatar
    MicrotechXP is offline x10 Spammer MicrotechXP is an unknown quantity at this point
    Join Date
    Feb 2005
    Location
    USA,California
    Posts
    3,822

    Re: Need help with code

    Quote Originally Posted by xPlozion View Post
    where exactly do you want it to be placed? i'm not sure, so i can't tell you where it would go
    AS I said in my original post I want it under the actual post.

    James I put it before that and it did not work.

  7. #7
    MicrotechXP's Avatar
    MicrotechXP is offline x10 Spammer MicrotechXP is an unknown quantity at this point
    Join Date
    Feb 2005
    Location
    USA,California
    Posts
    3,822

    Re: Need help with code

    *bump*

+ Reply to Thread

Similar Threads

  1. Hybrid's HTML Lessons
    By Hybrid in forum Tutorials
    Replies: 18
    Last Post: 11-28-2009, 02:12 PM
  2. Help with PayPal button code...
    By componentwarehouse in forum Programming Help
    Replies: 3
    Last Post: 06-17-2008, 06:22 AM
  3. BB Code Guide
    By Jober68 in forum Tutorials
    Replies: 1
    Last Post: 01-10-2008, 05:12 PM
  4. New x10 ad code
    By yahia in forum Feedback and Suggestions
    Replies: 23
    Last Post: 01-02-2007, 12:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers