Tagged: x
-
AuthorPosts
-
January 18, 2017 at 7:12 am #1334987
Tiff7ParticipantHi there! I’d like to be able to display the full post on my category archive page.
http://www.rockthechurch.org/category/podcast/I want it to display the full post like it does here:
http://www.rockthechurch.org/podcast-archive/I’m using Ethos. I saw some other thread that had a fix for this using Renew, but I’m using Ethos so the php didn’t work. I’m using a child theme.
Can you help me out with this?
Thank you!
January 18, 2017 at 7:50 am #1335026
Tiff7ParticipantActually I figured it out! I just needed to append two pieces of code in _content.php because I want to display full post content on both tag archive pages and category archive pages… so I used the code below in _content.php. It seems to work.
<?php // ============================================================================= // VIEWS/GLOBAL/_CONTENT.PHP // ----------------------------------------------------------------------------- // Display of the_excerpt() or the_content() for various entries. // ============================================================================= $stack = x_get_stack(); $is_full_post_content_blog = is_home() && x_get_option( 'x_blog_enable_full_post_content' ) == '1'; ?> <?php if ( is_tag() || is_search() || is_singular() || $is_full_post_content_blog ) : x_get_view( 'global', '_content', 'the-content' ); if ( $stack == 'renew' ) : x_get_view( 'renew', '_content', 'post-footer' ); endif; else : x_get_view( 'global', '_content', 'the-excerpt' ); endif; ?> <?php // ============================================================================= // VIEWS/GLOBAL/_CONTENT.PHP // ----------------------------------------------------------------------------- // Display of the_excerpt() or the_content() for various entries. // ============================================================================= $stack = x_get_stack(); $is_full_post_content_blog = is_home() || is_archive && x_get_option( 'x_blog_enable_full_post_content', 0 ) == 1; ?> <?php if ( is_singular() || $is_full_post_content_blog ) : x_get_view( 'global', '_content', 'the-content' ); if ( $stack == 'renew' ) : x_get_view( 'renew', '_content', 'post-footer' ); endif; else : x_get_view( 'global', '_content', 'the-excerpt' ); endif; ?>January 18, 2017 at 7:52 am #1335028
Tiff7ParticipantUgh, no it didn’t work… now my blog page is showing double entries for each post. Can you help me fix this please?
January 18, 2017 at 7:58 am #1335031
ChristianModeratorHey there,
Copy _content.php located in
\themes\x\framework\views\globalto the same folder in your child theme\themes\x-child\framework\views\globalChange this line
if ( is_singular() || $is_full_post_content_blog ) :to
if ( is_singular() || $is_full_post_content_blog || is_archive() ) :That applies to all Stacks though I don’t recommend that to Ethos as its featured image displays left.
Thanks.
January 18, 2017 at 8:06 am #1335053
Tiff7ParticipantBrilliant! Thank you very much! 🙂
I’m not using featured images in blog posts so it works perfectly.January 18, 2017 at 8:24 am #1335080
ChristianModeratorYou’re welcome.
January 30, 2017 at 2:58 am #1350427
ANEVRYParticipantHi – I have a similar issue. I have category pages. I would like my posts to display everything above the <–more–> tag. I am using Renew. I would like this to work on any post type so that it includes videos if I link them above the <–more–> tag.
My site: https://tigonkarate.com/
My blog page (read-more works): https://tigonkarate.com/online-dojo/
My archive page (read-more doesn’t work): https://tigonkarate.com/lessons/
January 30, 2017 at 3:17 am #1350431 -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1334987 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
