Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1052459

    ladyships
    Participant

    Hello!

    I don’t want the entries to be shortened when blog entries are displayed in search results OR when viewing entries with a particular tag or category—I want it to display the full entry text, I never want the entries to be shortened into an excerpt. Any idea where I can configure that?

    Doing some reading up on my own, it sounds like I need to change the_excerpt() to the_content() in archive.php & search.php, but I tried finding those files in the X theme folder, but no luck. Those files ARE in the bundled theme folders—Twenty Fourteen, for instance—but not in the X folder.

    Along similar lines, I want all entries to display chronologically (earliest to latest) instead of the default, which is reverse chronologically (latest to earliest). I found a work-around by adding ?order=asc to the end of the URLs, but since it’s a behavior I want to enable globally, I was hoping there’s someplace in the code where I could define that. I’ve got over 500 different tags I use for entries, & it’d be a complete pain in the ass to modify all those URLs.

    Any clues?

    #1052551

    Paul R
    Moderator

    Hi,

    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;
    
    ?>
    

    Hope that helps.

    #1053060

    ladyships
    Participant

    I did as instructed & that didn’t do the trick, even after clearing all caches: http://sandersequality.com/category/clinton-email-server/timeline-long/

    &, any ideas on the displaying entries chronologically bit?

    #1053131

    Nico
    Moderator

    Hi There,

    Would you mind sharing us your admin credentials so we could check your setup closer.

    Don’t forget to set it as private reply.

    Thanks.

    #1054240

    ladyships
    Participant
    This reply has been marked as private.
    #1054468

    Lely
    Moderator

    Hi There,

    Would you mind also giving us FTP credentials on a private reply? We also need to check you child theme.
    Thanks.

    #1054581

    ladyships
    Participant
    This reply has been marked as private.
    #1055247

    Friech
    Moderator

    Hi There,

    You named the file as file_content.php, please rename that to _content.php and clear your site caching plugins.

    Thanks.

    #1056190

    ladyships
    Participant

    great! that worked! 😀 😀 😀 you folks are the best!

    is there any hope with regards to changing the order in which the entries are displayed? to display them chronologically instead of the default reverse chronological order?

    #1056439

    Rupok
    Member

    Hi there,

    That will need further development that would be getting into custom development, which is outside the scope of support we can offer. If you need more in depth changes, you may wish to consult with a developer. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding.