¿Cómo agregar una imagen en mi tema de forma correcta?

  • Autor Autor Caffa
  • Fecha de inicio Fecha de inicio
Caffa

Caffa

Delta
Social Media
Verificación en dos pasos activada
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
Hola quiero hacerles una pregunta. necesito agregar una imagen en un lugar y lo intenté y no me deja, como hago ? aca les dejo una imagen en donde iría la imagen

Enlace eliminado

Desde yá muchas gracias.
 
Tienes que añadir la imagen justo debajo del <?php the_content(); ?> en el single post
 
Algo estoy haciendo mal. mira :S

Insertar CODE, HTML o PHP:
<?php get_header(); ?>

				<div class="content">
				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
					<?php 
						$category = sf_get_category_id(get_option('sf_portfolio_category'));
						if (in_category($category) || post_is_in_descendant_category($category)) { include(TEMPLATEPATH . "/template-portfolioitem.php"); $footer = "no"; }
						else {
					?>
					<div class="blogpost">
						<div class="comments"><?php comments_number('0', '1', '%'); ?></div>
						<h2 class="title"><?php the_title(); ?></h2>
						<div class="meta">Posted <?php the_time('F jS, Y') ?> in <?php the_category(', ') ?> <?php the_tags( 'and tagged ', ', ', ' '); ?> by <?php the_author() ?></div>
						<div class="entry">
							<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
<img src="http://i271.photobucket.com/albums/jj143/Caffa123/GuidoCaffa/Compartelo.png"">
							<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
						</div>
                                </div>

					<?php if (get_option('sf_social_status')) { ?>
					<div class="social">
						<h3><?php echo get_option('sf_social_title'); ?></h3>
						<p>
							<?php echo get_option('sf_social_text'); ?>
						</p>
						<ul>
							<li class="designfloat"><a href="http://www.designfloat.com/submit.php?url=<?php the_permalink(); ?>&amp;title=<?php the_title_attribute() ?>">DesignFloat</a></li>
							<li class="delicious"><a href="http://del.icio.us/post?url=<?php the_permalink(); ?>&amp;title<?php the_title_attribute() ?>">Delicious</a></li>
							<li class="digg"><a href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink(); ?>&amp;title=<?php the_title_attribute() ?>">Digg</a></li>
							<li class="stumbleupon"><a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&amp;title=<?php the_title_attribute() ?>">StumbleUpon</a></li>
							<li class="reddit"><a href="http://reddit.com/submit?url=<?php the_permalink(); ?>&amp;title=<?php the_title(); ?>">Reddit</a></li>
							<li class="technorati"><a href="http://technorati.com/faves?add=<?php the_permalink(); ?>">Technorati</a></li>
						</ul>
					</div>
					<?php } ?>
					<?php comments_template(); ?>
					<?php } ?>
					<?php endwhile; else: ?>
					
							<?php include_once(TEMPLATEPATH."/page-error.php"); ?>
					
					<?php endif; ?>

				</div>

<?php if ($footer != "no") { get_sidebar();  } ?>
<?php get_footer(); ?>
 
Puede ser un error muy simple:
PHP:
<img src="http://i271.photobucket.com/albums/jj143/Caffa123/GuidoCaffa/Compartelo.png"">

Por
PHP:
<div class="social">

						<h3><?php echo get_option('sf_social_title'); ?></h3>
<img src="http://i271.photobucket.com/albums/jj143/Caffa123/GuidoCaffa/Compartelo.png">
						<p>
							<?php echo get_option('sf_social_text'); ?>
						</p>
						<ul>

Revisa las comillas de la imagen.
 
sigue sin funcionar :S
 
no, no te funciona por que la etiqueta img se cierra de esta manera:

<img src="vjsdvnd" />

ninguna comilla, nada, al final se deja un espacio seguido de un slash (/) y la etiqueta de cierre (>)
 
Fijate que tenés agregado esto:

Insertar CODE, HTML o PHP:
<a><strong><em><img src=\\\'http://i271.photobucket.com/albums/jj143/Caffa123/GuidoCaffa/Compartelo.png\\\' /></em></strong></a>

Debería estar... así:
Insertar CODE, HTML o PHP:
<img src='http://i271.photobucket.com/albums/jj143/Caffa123/GuidoCaffa/Compartelo.png\\\' />

Aclaro que deberias elimninar el enlace (no tiene ningun destino), y el estilo de texto (negrita y cursiva...), aunque el problema es solamente por las barras (\\\):

2v990n9.png
 
Atrás
Arriba