• Hello there,
    I helped a good friend of mine create a custom WordPress theme for her blog. Everything is working great but I’ve noticed a strange issue.

    If you go to her website and look a the bottom of each post there are random numbers displayed in between category names- http://hippie-eats.com/

    Mind you the content.php file has virtually remained untouch, and I don’t think these numbers are related to the actual category ID in anyway. I have no idea where they are coming from- help! Any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Actually those seem to be the post IDs, not know why they’re there.
    You’re using a custom theme, so can you post also your content.php but also content-(the post-format you used) if you used post formats in your theme?

    Thread Starter kiannachauntis

    (@kiannarexia)

    Yes! I’m using the default content for this- here it is.

    <?php
    /**
     * The default template for displaying content. Used for both single and index/archive/search.
     *
     * @package WordPress
     * @subpackage Twenty_Twelve
     * @since Twenty Twelve 1.0
     */
    ?>
    
    	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    		<?php if ( is_sticky() && is_home() && ! is_paged() ) : ?>
    		<div class="featured-post">
    			<?php _e( 'Featured post', 'twentytwelve' ); ?>
    		</div>
    		<?php endif; ?>
    		<header class="entry-header">
    			<?php the_post_thumbnail(); ?>
    			<?php if ( is_single() ) : ?>
    			<h1><?php the_title(); ?></h1>
    			<?php else : ?>
    			<h1>
    				<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
    			</h1>
    <div class="date"><?php echo get_the_date(); ?></div>
    			<?php endif; // is_single() ?>
    
    		</header><!-- .entry-header -->
    
    		<?php if ( is_search() ) : // Only display Excerpts for Search ?>
    		<div class="entry-summary">
    			<?php the_excerpt(); ?>
    		</div><!-- .entry-summary -->
    		<?php else : ?>
    		<div class="entry">
    			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
    			<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
    		</div><!-- .entry-content -->
    		<?php endif; ?>
    
    			<div style="float:right;"><?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> Posted in <?php echo the_category($id); ?>. <?php if ( comments_open() ) : ?>
    
    					<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
    				<!-- .comments-link -->
    			<?php endif; // comments_open() ?>
    			</div>
    <br/><br/>
    <hr style="clear:both; border:1px solid #83e8f2;" />
    <br/><br/>
    	</article><!-- #post -->

    Ok, having a look at your html structure, there looks like a plugin generates a small javascript and inserts it into each post.

    which plugins are you using?
    there is one that generates small javascripts within your posts.
    I think it may be related to StumbleUpon Badges.
    I was reading something here, but I’m not sure if this is the issue.

    In the above linked article, they give instructions for wp.org:
    <?php the_content(“<p class=serif>Read the rest of this entry”</p>”);?>
    If you have firebug you can see in your page it generates 5 small scripts called “hostedbadge.php?etc…” and this is what in html:

    <div class="bottomcontainerBox" style="background-color:#fff;">
    			<div style="float:left; width:75px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
    				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fhippie-eats.com%2F%3Fp%3D95&layout=button_count&show_faces=false&width=75&action=like&font=verdana&colorscheme=light&height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:75px; height:21px;"></iframe>
    			</div>
    			<div style="float:left; width:50px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
    				<g:plusone size="medium" href="http://hippie-eats.com/?p=95"></g:plusone>
    			</div>
    			<div style="float:left; width:65px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
    				<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://hippie-eats.com/?p=95"  data-text="Asian BBQ Tofu Tacos" data-count="horizontal" data-via="hippieats"></a>
    			</div>
    			<div style="float:left; width:30px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
    				<a href="http://pinterest.com/pin/create/button/?url=http://hippie-eats.com/?p=95&media=http://hippie-eats.com/wp-content/uploads/2013/08/BBQTacosLarge.jpg" class="pin-it-button" count-layout="horizontal"></a>
    			</div>
    			<div style="float:left; width:65px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
    				<script src="http://www.stumbleupon.com/hostedbadge.php?s=1&r=http://hippie-eats.com/?p=95"></script>
    			</div>
    		</div>
    
    		<div style="clear:both"></div>
    		<div style="padding-bottom:4px;"></div>
    	</div><!-- .entry-content -->
    
    	<div style="float:right;"> Posted in
    		<a href="http://hippie-eats.com/?cat=10" title="View all posts in Dairy Free" rel="category">Dairy Free</a>95
    		<a href="http://hippie-eats.com/?cat=8" title="View all posts in Gluten Free" rel="category">Gluten Free</a>95
    		<a href="http://hippie-eats.com/?cat=9" title="View all posts in Vegan" rel="category">Vegan</a>95
    		<a href="http://hippie-eats.com/?cat=26" title="View all posts in Vegetarian" rel="category">Vegetarian</a>.
    		<a href="http://hippie-eats.com/?p=95#respond" title="Comment on Asian BBQ Tofu Tacos"><span class="leave-reply">Leave a reply</span></a><!-- .comments-link -->
    	</div>

    Try deactivate the stumbleupon adds, or deactivate plugins one-by-one and see if it does something.

    hope this can help a little

    keep sound

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Category Issue?’ is closed to new replies.