Šī spraudnis nav atjaunināts vairāk kā divus gadus. Varbūt, tas vairs netiek uzturēts, nesaņemt atbalstu un tam var būt saderības problēmas ar jaunākām WordPress versijām.

Advanced Post Excerpt

Apraksts

WordPress post excerpts can be a great way to hand-craft the summary of your content. Unfortunately, writing post excerpts isn’t as nice of an experience as what you find elsewhere in WordPress. Want to include links in your excerpts, or bold some text? Hopefully you know some HTML!

Advanced Post Excerpts is designed to change that, by giving your editors an easy, intuitive interface for writing great post excerpts.

For complete details and/or to contribute to ongoing development, please visit this project on GitHub.

Ekrānuzņēmumi

  • The Advanced Post Excerpt meta box, replacing the standard WordPress post excerpt.

Uzstādīšana

  1. Upload the plugin files into wp-content/plugins/advanced-post-excerpt.
  2. Activate the plugin through the WordPress “Plugins” screen.

BUJ

Can I limit the post types that get the advanced editor?

Absolutely! Before the native “Excerpt” meta box is overridden, Advanced Post Excerpt passes an array of post types to the ape_post_types filter.

If, for instance, you only want the native “post” post type to use Advanced Post Excerpt, you can add the following to your theme’s functions.php file:

/**
 * Restrict Advanced Post Excerpt to the "post" post type.
 *
 * @param array $post_types Post types affected by Advanced Post Excerpt.
 * @return array A restricted version of $post_types containing only "post".
 */
function mytheme_restrict_ape_post_types( $post_types ) {
    return array( 'post' );
}
add_filter( 'ape_post_types', 'mytheme_restrict_ape_post_types' );

Will this work with the WordPress block editor (a.k.a. “Gutenberg”)?

Yes! As of version 1.0.0, Advanced Post Excerpt will continue to display the TinyMCE editor in a meta box at the bottom of the block editor. To avoid conflicts, the default “Post Excerpt” panel in the block editor’s sidebar will automatically be removed.

Atsauksmes

18 jūlijs, 2020
A simple plugin that does exactly what it says in the description. I now have the ability to have rich text editing in my post excerpt… exactly what I wanted. Many thanks to the author!
Lasīt 4 atsauksmes

Autori un izstrādātāji

“Advanced Post Excerpt” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.

Līdzdalībnieki

“Advanced Post Excerpt” ir tulkots lokalizācijā 1. Paldies tulkotājiem par ieguldījumu.

Tulkot “Advanced Post Excerpt&#8221 savā valodā.

Vai jūs interesē attīstība?

Pārlūkojiet kodu, apmeklējiet SVN krātuvi vai abonējiet attīstības žurnālu, ko izveidojis RSS.

Izmaiņu žurnāls

For a full list of changes, please see the full changelog on GitHub.

1.0.0

  • Added compatibility with the WordPress block editor (a.k.a. “Gutenberg”).
  • Bumped minimum PHP version to 7.0.

0.2.1

  • Ensured that the plugin was localization-ready.

0.2.0

0.1.0

  • Initial public release.