Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1330950
    c1s
    Participant

    Hi,

    I added the code from post #266784 into the files content-audio.php, content-gallery.php, content-image.php and content-video.php in the child themes. The excerpts of all post types are now shown in the blog page.

    In addition, I would like to show the excerpts of all post types in the archive pages (category pages) of the blog.

    Which code do I have to add into the files content-audio.php, content-gallery.php, content-image.php and content-video.php in the child theme in order to achieve this?

    Thanks for your help!

    #1330954
    c1s
    Participant
    This reply has been marked as private.
    #1331370
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in and the very detailed post information. To edit the mentioned files and make sure that content excerpts will show up in the archive pages, please find this line:

    
    <?php x_get_view( 'global', '_content', 'the-content' ); ?>

    You will need to remove this line and move it before the if (condition) statement. For example, the content-video.php

    <?php
    
    // =============================================================================
    // VIEWS/RENEW/CONTENT-VIDEO.PHP
    // -----------------------------------------------------------------------------
    // Video post output for Renew.
    // =============================================================================
    
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      <div class="entry-wrap">
        <?php x_get_view( 'renew', '_content', 'post-header' ); ?>
        <div class="entry-featured">
          <?php x_featured_video(); ?>
        </div>
        
        <?php x_get_view( 'global', '_content', 'the-content' ); ?>
    
        <?php if ( is_single() ) : ?>
          <?php x_get_view( 'renew', '_content', 'post-footer' ); ?>
        <?php endif; ?>
      </div>
    </article>

    Hope this make sense.

  • <script> jQuery(function($){ $("#no-reply-1330950 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>