Tagged: x
-
AuthorPosts
-
June 21, 2016 at 8:05 am #1052459
Hello!
- http://www.sandersequality.com
- WP version is 4.5.2
- X version 4.5.2
- Cornerstone 1.2.4
- already have a child theme installed
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()
tothe_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?
June 21, 2016 at 9:00 am #1052551Hi,
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.
June 21, 2016 at 2:26 pm #1053060I 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?
June 21, 2016 at 3:00 pm #1053131Hi 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.
June 22, 2016 at 8:01 am #1054240This reply has been marked as private.June 22, 2016 at 10:22 am #1054468Hi There,
Would you mind also giving us FTP credentials on a private reply? We also need to check you child theme.
Thanks.June 22, 2016 at 11:15 am #1054581This reply has been marked as private.June 22, 2016 at 6:15 pm #1055247Hi There,
You named the file as file_content.php, please rename that to _content.php and clear your site caching plugins.
Thanks.
June 23, 2016 at 6:56 am #1056190great! 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?
June 23, 2016 at 10:06 am #1056439Hi 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.
-
AuthorPosts