Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1080492
    Palzme
    Participant

    How do I display Full content on search result for renew stack please?

    #1080505
    Palzme
    Participant

    I have now worked this out by the following:

    To show full post in archive and search pages, create file _content.php in wp-content/themes/x-child/framework/views/global and copy the code below into that file.

    <?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_singular() || is_search() || is_archive() || $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;
    
    ?>
    #1080557
    Nico
    Moderator

    Happy to hear that. Thank you so much for sharing.

    Feel free to ask us again.

    Thanks.

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