Dan_Koperski
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Eino] Full posts intead of exceptsthe problem with what you’re asking is that this template uses hybrid core and I spent over an hour looking through the pages trying to figure out where to edit what you say.
in the content.php hybrid file:
<article <?php hybrid_post_attributes(); ?>><?php if ( is_singular( get_post_type() ) ) { ?>
<header class=”entry-header”>
<h1 class=”entry-title”><?php single_post_title(); ?></h1>
<?php echo apply_atomic_shortcode( ‘entry_byline’, ‘<div class=”entry-byline”>’ . __( ‘Published by [entry-author] on [entry-published] [entry-comments-link before=” | “] [entry-edit-link before=” | “]’, ‘eino’ ) . ‘</div>’ ); ?>
</header><!– .entry-header –><div class=”entry-content”>
<?php the_content(); ?>
<?php wp_link_pages( array( ‘before’ => ‘<p class=”page-links”>’ . ‘<span class=”before”>’ . __( ‘Pages:’, ‘eino’ ) . ‘</span>’, ‘after’ => ‘</p>’ ) ); ?>
</div><!– .entry-content –><footer class=”entry-footer”>
<?php echo apply_atomic_shortcode( ‘entry_meta’, ‘<div class=”entry-meta”>’ . __( ‘[entry-terms before=”Posted in ” taxonomy=”category”] [entry-terms before=”| Tagged “]’, ‘eino’ ) . ‘</div>’ ); ?>
</footer><!– .entry-footer –><?php } else { ?>
<header class=”entry-header”>
<?php the_title( ‘<h2 class=”entry-title”>‘, ‘</h2>’ ); ?>
<?php echo apply_atomic_shortcode( ‘entry_byline’, ‘<div class=”entry-byline”>’ . __( ‘Published by [entry-author] on [entry-published] [entry-comments-link before=” | “] [entry-edit-link before=” | “]’, ‘eino’ ) . ‘</div>’ ); ?>
</header><!– .entry-header –><div class=”entry-summary”>
<?php if ( current_theme_supports( ‘get-the-image’ ) ) get_the_image(); ?>
<?php the_excerpt(); ?>
<?php wp_link_pages( array( ‘before’ => ‘<p class=”page-links”>’ . ‘<span class=”before”>’ . __( ‘Pages:’, ‘eino’ ) . ‘</span>’, ‘after’ => ‘</p>’ ) ); ?>
</div><!– .entry-summary –><footer class=”entry-footer”>
<?php echo apply_atomic_shortcode( ‘entry_meta’, ‘<div class=”entry-meta”>’ . __( ‘[entry-terms before=”Posted in ” taxonomy=”category”] [entry-terms before=”| Tagged “]’, ‘eino’ ) . ‘</div>’ ); ?>
</footer><!– .entry-footer –><?php } ?>
</article><!– .hentry –>
Which doesn’t use the_excerpt … so this led me to editing the settings for what the_exerpt displays.
Forum: Themes and Templates
In reply to: [Eino] Full posts intead of exceptsI had this same issue in trying to get the front page to show entire posts and not just excerpts and I stumbled upon this solution by playing around with the config files.
/wp-content/themes/eino/functions.php
starting on line 1021 you’ll find this function that controls how much is displayed in eino_excerpt_length
This function overrides everything, so you have to edit it directly (download the file to your local machine and edit it there as it’s not available to edit on your site using the site editor)
You want to edit line 1041 to return a value like 5000. This will force the loop to display everything in your post. Once I did that, my posts showed everything… ??
/**
* Excerpt_length.
*
* @since 0.1.0
*/
function eino_excerpt_length( $length ) {
if ( is_post_type_archive( array( ‘download’, ‘portfolio_item’ ) ) || is_tax( array( ‘portfolio’, ‘download_category’, ‘download_tag’ ) ) || is_page_template( ‘page-templates/portfolio-page.php’ ) || is_page_template( ‘page-templates/download-page.php’ ) )
return 20;
else
return 5000;
}