Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter holubp

    (@holubp)

    Resolved it! Sorry.

    Thread Starter holubp

    (@holubp)

    nevermind! fixed it.

    had to simply change the site address.

    Thread Starter holubp

    (@holubp)

    alchymyth I took your advice and replaced

    the_post_thumbnail('small-thumbnail');

    in the original code i posted in my first post, with

    <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('small-thumbnail'); ?></a>

    and my blog page goes white and inaccessible…

    Thread Starter holubp

    (@holubp)

    thanks alchymyth but when I add that in, it only links the first blog post and all of my other images in the post excerpts below disappear.

    Here is what my index.php looks like

    <?php get_header(); ?>
    
    		<div id="container" class="row-inner">
    			<?php if( ot_get_option('blog_layout') == 'full-width' ) : ?>
    
    				<div id="content">
    <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('small-thumbnail'); ?></a>
    
    <?php
    
    					if ( have_posts() ) :
    						while ( have_posts() ) : the_post();
    
    							get_template_part( 'content', get_post_format() );
    
    						endwhile;
    					else :
    						get_template_part( 'content', 'none' );
    
    					endif;
    
    					?>
    
    					<nav class="post-navigation" role="navigation">
    						<?php posts_nav_link(' ', __('Newer posts', 'care'), __('Older posts', 'care'));?>
    					</nav>
    
    				</div><!-- #content -->
    
    			<?php else : ?>
    
    			<div id="content" class="<?php if( ot_get_option('blog_layout', 'right-sidebar') == 'right-sidebar' ) { echo 'float-left'; } else { echo 'float-right'; } ?>">
    
    					<?php
    					if ( have_posts() ) :
    						while ( have_posts() ) : the_post();
    the_post_thumbnail('small-thumbnail');
    							get_template_part( 'content', get_post_format() );
    						endwhile;
    					else :
    						get_template_part( 'content', 'none' );
    					endif;
    					?>
    
    					<nav class="post-navigation" role="navigation">
    						<?php posts_nav_link(' ', __('Newer posts', 'care'), __('Older posts', 'care'));?>
    					</nav>
    
    				</div><!-- #content -->
    
    				<div id="sidebar" class="<?php if( ot_get_option('blog_layout', 'right-sidebar') == 'right-sidebar' ) { echo 'float-right'; } else { echo 'float-left'; } ?>">
    					<?php get_sidebar('blog'); ?>
    				</div>
    			<?php endif; ?>
    		</div><!-- #container -->
    
    <?php get_footer(); ?>

    Any ideas?

    Blog is here

    http://www.homeopathicpluscentre.com/wordpressnew/?page_id=2946

    Thread Starter holubp

    (@holubp)

    Thanks Rajesh!

    any idea how to permalink the thumbnail i have in there? I tried

    <a href="<?php the_permalink(); ?>">the_post_thumbnail('small-thumbnail');</a>

    but it basically crashed my site so I removed it.

    Thread Starter holubp

    (@holubp)

    In the mean time of waiting for help I looked around and installed the ‘export featured images’ Plugin, exported those from the old site and imported into the new site and still none of the featured images are showing in the posts they were originally exported from.

    This is very frustrating.

Viewing 6 replies - 1 through 6 (of 6 total)