این افزونه با آخرین 3 نسخه اصلی وردپرس تست نشده است. ممکن است دیگر نگهداری یا پشتیبانی نشود و ممکن است هنگام استفاده با نسخه های جدیدتر وردپرس مشکلات سازگاری داشته باشد.

Category Thumbnail

توضیحات

[catthumb id=”CategoryID” link=”true”] will find the most recent post in the specified Category with a featured image and return the thumbnail for that image. If link=”true” is specified, the image will link to the category specified.

You can optionally search custom post types with the post_type attribute, and specify the thumbnail size with the size attribute. IE [catthumb id="CategoryID" link="true" post_type="restaurants" size="full"]

The plugin will only search featured images, not attached images. It will not look for images embedded in the post itself, or other attached images. If a category does not have any posts with featured images, this plugin will not return a thumbnail image, even if the category has posts with attached images.

نصب

  1. Upload dirtysuds-category-thumbnail to the /wp-content/plugins/ directory
  2. Activate DirtySuds – Category Thumbnail through the ‘Plugins’ menu in WordPress
  3. In the page editor, add the shortcode [catthumb id="CategoryID"] where CategoryID is category id number. This must be a number, not the category slug or name

سوالات متداول

Can I use `catthumb` in a template?

Of course! The syntax is very similar to the shortcode syntax. Just add the following line to your template.

<?php dirtysuds_category_thumb(array('id'=>'CategoryID')); ?>

You just need to replace CategoryID with the id number of the category.

I have an idea for a great way to improve this plugin

Please open a pull request on Github

نقد و بررسی‌ها

نقد و بررسی‌ای برای این افزونه یافت نشد.

توسعه دهندگان و همکاران

“Category Thumbnail” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

ترجمه “Category Thumbnail” به زبان شما.

علاقه‌ مند به توسعه هستید؟

کد را مرور کنید, را بررسی کنید مخزن SVN, یا مشترک شوید گزارش توسعه توسط RSS.

گزارش تغییرات

1.5.0 20150328

  • Escape our queries

1.4.0 20150323

  • Allow custom image sizes
  • Allow custom post types

1.03 20141011

  • Bugfix

1.02 20141011

  • Cleaned up code a bit
  • Make use of transients

1.01.20121202

  • Cleaned up code a bit
  • Now supports Jetpack Photon images

1.00.20110226

  • First version
  • Works