Support » Plugin: Advanced Excerpt » Applying Advanced Excerpt to content-single.php in Melos Pro theme

  • Resolved consumermicro

    (@consumermicro)


    I’m building a content aggregator site and I have a specific issue I’m trying to resolve. I’m using the Melos Pro theme by Think Up Themes and I’m trying to replace all single posts with excerpts. In other words, all posts will be excerpts except for pages, portfolios, etc. Doing this was relatively easy, I simply changed my content-single.php file:

    <?php
    /**
     * The Single Post content template file.
     *
     * @package ThinkUpThemes
     */
    ?>
    		<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    		<?php thinkup_input_postmedia(); ?>
    		<?php thinkup_input_postmeta(); ?>
    		<div class="entry-content">
    			<?php the_excerpt(); 		
    /**
    * Changed "the_content" to "the_excerpt".
    */			
    			?>         
    			<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'melos' ), 'after'  => '</div>', ) ); ?>
    		</div><!-- .entry-content -->
    		</article>
    		<div class="clearboth"></div>

    But when the excerpt is being shown on the single post page the Advanced excerpt plugin has no effect on it. Shortcode text is rendered but not functional and most formatting is stripped out. Is there any way to apply the plugin to these single posts? Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Applying Advanced Excerpt to content-single.php in Melos Pro theme’ is closed to new replies.