Tagged: x
-
AuthorPosts
-
January 15, 2017 at 11:38 am #1330950
c1sParticipantHi,
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!
January 15, 2017 at 11:43 am #1330954
c1sParticipantThis reply has been marked as private.January 15, 2017 at 8:24 pm #1331370
Rue NelModeratorHello 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.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1330950 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
