Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1334987
    Tiff7
    Participant

    Hi 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!

    #1335026
    Tiff7
    Participant

    Actually 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;
    
    ?>
    #1335028
    Tiff7
    Participant

    Ugh, no it didn’t work… now my blog page is showing double entries for each post. Can you help me fix this please?

    http://www.rockthechurch.org/podcast-archive/

    #1335031
    Christian
    Moderator

    Hey there,

    Copy _content.php located in \themes\x\framework\views\global to the same folder in your child theme \themes\x-child\framework\views\global

    Change 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.

    #1335053
    Tiff7
    Participant

    Brilliant! Thank you very much! 🙂
    I’m not using featured images in blog posts so it works perfectly.

    #1335080
    Christian
    Moderator

    You’re welcome.

    #1350427
    ANEVRY
    Participant

    Hi – 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/

    #1350431
    Paul R
    Moderator

    Hi,

    Please follow instructions provided in #1335031

    Thanks

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