Šī 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.

Featured Image in Content

Apraksts

Not all themes work the same way, and sometimes switching themes can lead to a lot of headaches. If you’ve previously used a theme that supports featured images and displays them on single post views, you probably want to ensure that these images are still shown if you switch to a theme that doesn’t show featured images here, without editing all of your old content.

This plugin automatically displays featured images at the top of the content area on single post views. It doesn’t check whether your theme displays them, so you’ll get double featured images if it does. It works via a filter, so if you ever switch themes again to one that does support featured images on single views, you can deactivate this plugin and things will go right back to normal. No information is saved in the database and no additional special image sizes are generated in this plugin.

Possible Core Material

This plugin may be material for WordPress core if it were to display featured images that exist when the current theme doesn’t support featured images. While this would reduce the potential for content loss, it would also have a significant affect on existing content.

Ekrānuzņēmumi

  • Featured image in an image-format post with only a title and featured, displayed in Twenty Ten (which doesn’t support featured images). Without the plugin, only the post title displays.

Uzstādīšana

  1. Take the easy route and install through the WordPress plugin adder OR
  2. Download the .zip file and upload the unzipped folder to the /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Featured images that have been added will start showing up on single views immediately, at the top of the content.

BUJ

Where’s the settings page?

For simplicity’s sake, no settings page is included. While there are a few potential options, I don’t feel that they would be worth the extra bloat of a settings page. If you would like to make adjustments, I suggest implementing your own plugin based on this one (feel free to copy/paste, then rename it) – the code is very simple and can be easily adjusted to related needs.

Atsauksmes

Par šo spraudni nav atsauksmju.

Autori un izstrādātāji

“Featured Image in Content” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.

Līdzdalībnieki

Tulkot “Featured Image in Content&#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

1.0

  • Initial release.