Add "Read More" to manual excerpt
-
Hi all, I am trying to get a working “Read More” text or button for a manual excerp section on my site but am having problems getting it to work.
Here is the link to the site, the excerpts are the 3 content sections in the middle.
https://communitycapitalfund.org/thelink/new/
I know the page that I need to modify, this is the current code that I have
<?php $icon = get_post_meta(get_the_ID(), 'Icon', true); $tagline = get_post_meta(get_the_ID(), 'Tagline', true); ?> <?php if ($icon != '' ) { ?> <img src="<?php echo esc_attr($icon); ?>" alt="" class="icon" /> <?php } ?> <h3 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <?php if ($tagline != '' ) { ?> <p class="tagline"><?php echo wp_kses( $tagline, array( 'span' => array() ) );?></p> <?php } ?> <?php global $more; $more = 0; if (function_exists('has_excerpt') && has_excerpt()) the_excerpt(); else the_content('Read on...'); ?> <a href="<?php the_permalink(); ?>" class="readmore"><span><?php esc_html_e('Read more','Minimal'); ?></span></a>
Any help is greatly appreciated, thanks!!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add "Read More" to manual excerpt’ is closed to new replies.