Excerpts not showing

You’re looking at the code wrong. If there is an excerpt it’s not going to affect that line you changed. Are you actually entering text into the excerpt field in the post edit? try changing it to this to see if it’s even working: if (!is_search()) { echo get_the_content(); } else { echo get_the_content(); }

How to custom excerpt?

You can explode the content of excerpt by dot. For example: $text = “Morbi consequat tempor augue. Nec fringilla eros auctor scelerisque. Etiam in ullamcorper tellus. Sed ac dui rutrum.”; $pieces = explode(“.”, $text); echo $pieces[1]; // get second sentence = Nec fringilla eros auctor scelerisque Maybe this can help you.

How to use limit post content on archive page in WordPress?

use wp_trim_words() like so: <?php $moreLink = ‘<a href=”‘ . get_the_permalink() . ‘”>Read More</a>’; echo ‘<div class=”advert-div”>’; ?> <h2 class=”ad-title”><?php the_title(); ?></h2> <?php echo wp_trim_words(do_shortcode(“[the_ad id=”.$post->ID.”]”), 55, $moreLink); echo ‘</div>’; Just substitute however you need to get the permalink for your add in to the $moreLink if needed.

Trying to modify content.php

The answer is in your code. It’s even documented: <?php if (is_search()) { // Only display Excerpts for Search ?> <div class=”entry-summary”> <?php the_excerpt(); ?> <div class=”clearfix”></div> </div><!– .entry-summary –> <?php } else { ?> <div class=”entry-content”> <?php the_content(bootstrapBasicMoreLinkText()); ?> <div class=”clearfix”></div> <?php /** * This wp_link_pages option adapt to use bootstrap pagination style. * … Read more

Display Full Content Instead of Excerpt

General notes: it’s not good practice to modify the Parent theme. If the theme gets updated, then your changes will be lost. the Child theme is loaded first. Any missing ‘parts’ (like a template) are then loaded from the parent theme. So a page.php in your child theme will be used instead of the parent’s … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)