Support » Fixing WordPress » Post Excerpt disappeared on migration

  • Resolved ryanstout001

    (@ryanstout001)


    So there are hundreds of threads on how to show the post excerpt instead of full article, mine issue is somewhat related but different than the first 20 or so forum post I have reviewed. I am using the unite theme. Have not modified any core template files, just using my own custom css.

    When developing this site locally I set a static Home page, then created a page called blog and set that for the post page, checked the summary box for feeds. Locally it worked as it should showing only the excerpt with a nice read more link next to it, I then push to a testing domain I use for clients to review the phase one work. When this was pushed to a live server the excerpts just disappeared on the blog page. Nothing was changed from the local version.

    In the content.php I have this code:

    <?php if(of_get_option('blog_settings') == 1 || !of_get_option('blog_settings')) : ?>
    			<?php the_content( __( 'Continue reading <i class="fa fa-chevron-right"></i>', 'unite' ) ); ?>
    		<?php elseif (of_get_option('blog_settings') == 2) :?>
    			<?php the_excerpt(); ?>
    		<?php endif; ?>

    So I know it is there. I have the amount of post to show set at 6 and 3 dummie post up on the page.

    Can someone please show me what went wrong or at least point me in the right direction. Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • For clarification when I say disappeared I mean the excerpts changed to the full articles

    sorry I guess just typing it out answered my own question for me, in the above code I simply changed the 1 to a 2 and the 2 to a 1 and boom, showing up on live server.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Post Excerpt disappeared on migration’ is closed to new replies.