• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress a2z

WordPress a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / twentyfourteen_excerpt_more() – Replaces "[.

You appear to be a bot. Output may be restricted

Description

Replaces "[.

..]" (appended to automatically generated excerpts) with … and a Continue reading link.

Usage

$string = twentyfourteen_excerpt_more( $more );

Parameters

$more
( string ) required – Default Read More excerpt link.

Returns

string Filtered Read More excerpt link.

Source

File name: twentyfourteen/inc/template-tags.php


Lines:

1 to 10 of 10
  function twentyfourteen_excerpt_more( $more ) {
    $link = sprintf(
      '<a href="%1$s" class="more-link">%2$s</a>',
      esc_url( get_permalink( get_the_ID() ) ),
      /* translators: %s: Post title. Only visible to screen readers. */
      sprintf( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' )
    );
    return ' &hellip; ' . $link;
  }
 

 View on Trac

Published: 19th December 2019 | Last updated: 9th June 2022

Primary Sidebar

Information

Function name: twentyfourteen_excerpt_more
Plugin ref: Twenty Fourteen
Version: 3.4
Sourcefile: inc/template-tags.php
File ref: inc/template-tags.php
Deprecated?: No
API Letters: E,M,T

Footer

WordPress a2z
WordPress a2z
WordPress Dynamic API Reference
WordPress 6.0. PHP: 8.0.20
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  wp-a2z.org
© Copyright WordPress a2z 2014-2022. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites