WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] "Add Media" button (7 posts)

  1. Pettigrew Photography
    Member
    Posted 1 year ago #

    Hi All,

    I'm having trouble posting images to my blog using the new "add Media" button. When I upload and insert an image into the post all the images seem to be prefixed with "> characters.

    I'm guess they are coming from the <a href> tag or <imgsrc> tag. But I can't figure it out, and everytime I edit the post in the "text" tab to see the html code the formatting get messed up. Sometimes the same image also appears twice in the post.

    Anyone have any suggestions as to howto remove those characters ">

    You check out an example post here with this problem.

    Cheers
    Craig

  2. vahidd
    Member
    Posted 1 year ago #

    I think problem is on your single.php file.
    please attache your single.php file here.

  3. Pettigrew Photography
    Member
    Posted 1 year ago #

    text/x-generic single.php
    PHP script text
    
    <?php
    
    get_header();
    
    if (have_posts()) : while (have_posts()) : the_post();
    
    ?>
    
    <!-- START #content -->
    
    <div id="content">
    
    	<div id="cross"><img src="<?php echo BP; ?>/images/cross.png" alt="" /></div>
    
    	<h1 class="post_title"><?php the_title(); ?></h1>
    
    	<div id="content_wrap">
    
    		<div id="content_right">
    
    			<div id="sidebar">
    
    				<?php fw_sidebar($post->ID); ?>
    
    			</div>
    
    		</div>
    
    		<div id="content_left">		
    
    			<?php 
    
    			if (has_post_thumbnail()) : 
    
    			$image_id = get_post_thumbnail_id();
    			$image_url = wp_get_attachment_image_src($image_id, 'paged_thumb');
    
    			?>
    
    			<div id="post_thumbnail">
    
    				<a title="" href="<?php echo $image_url[0]; ?>" rel="prettyPhoto"><img src="<?php echo $image_url[0]; ?>" alt="" /></a>
    
    			</div>
    
    			<?php endif; ?>
    
    			<div class="blog_post_meta">
    
    				<ul>
    
    					<li class="date"><?php the_time('F j, Y'); ?></li>
    					<li class="author"><?php the_author_posts_link(); ?></li>
    					<li class="category"><?php the_category(", "); ?></li>
    					<?php if(has_tag()) : ?><li class="tag"><?php the_tags("",", ",""); ?></li><?php endif; ?>
    					<li class="comments"><?php comments_popup_link(__("No Comments","village"), __("One Comment","village"), '% ' . __("Comments","village"), '', __("Comments Closed","village")); ?></li>
    
    				</ul>
    
    			</div>
    
    			<?php 
    
    			the_content(); 
    
    			if (comments_open()) comments_template();
    
    			?>
    
    		</div>
    
    		<div class="clear"></div>
    
    	</div>
    
    </div>
    
    <!-- END #content -->
    
    <?php 
    
    endwhile; endif;
    
    get_footer(); 
    
    ?>
  4. vahidd
    Member
    Posted 1 year ago #

    I looked to this code, and it hasn't any problem, i think your light box plugin make this problem, deactivate it and try another lightbox plugin.

  5. Kcinner
    Member
    Posted 1 year ago #

    I am having a similar problem. I press the add media botton and nothing happens. Currently I am using Brunelleschi as my theme. Any thoughts??

    This problem was noted last month when I updated a bunch of plugins.

    thank you.

  6. Pettigrew Photography
    Member
    Posted 1 year ago #

    Thanks Vahidd,

    Will try deactivating the plugin tonight when I get home.

  7. Pettigrew Photography
    Member
    Posted 1 year ago #

    So I double checked that I had the latest version of the lightbox plus plugin, check.

    As vahidd mentioned I deactivated this plugin, checked my blog post and the characters had gone. Check.

    Re-activated the plugin, wrote a quick test post and no characters that I experienced before. Check.

    Thanks for the quick response which pointed to answer.

Topic Closed

This topic has been closed to new replies.

About this Topic