Posts per Cat

Posts per Cat

Posts per Cat is a simple plugin that grab all or only selected categories from blog database, and then list recent N posts from each category, organised in 1-5 columns.

If you are interested to acquisition of plugin, please contact us.

Features

  • choose how many boxes per row will be displayed (one, two, three, four or five)
  • define number of post titles to display per category
  • define category ID’s to exclude
  • define category ID’s to include
  • toggle displaying of child categories
  • ordering boxes by category ID, title or custom (manually entered category ID’s as include list)
  • toggle displaying sticky posts
  • toggle usage of custom list CSS
  • SEO optimized permalink URI’s
  • integrate to template file, use shortcode [ppc] with options or widget
  • ready for localisation
  • template system for single post line in box defined by user in plain HTML with macro keywords for post elements

Shortcode options

You can use shortcode [ppc], with options below (set option in shortcode to override default settings above):

  • columns=2 – Number of columns (1, 2, 3, 4 or 5)
  • minh=0 – Minimal height of box (in px, set to 0 for auto)
  • include=category_ID's – Include category (comma separated category ID’s)
  • exclude=category_ID's – Exclude category (comma separated category ID’s)
  • parent=0 – Only top level categories (0 or 1)
  • order=ID – Order categories by (ID, name or custom)
  • catonly=0 – Only from displayed category archive (0 or 1)
  • noctlink=0 – Do not link category name (0 or 1)
  • more=0 – Standalone link to archives (0 or 1)
  • moretxt="More from" – Archive link prefix
  • posts=5 – Number of headlines per category block
  • porderby=date – Order posts by date, modified, title, name, ID, author
  • porder=DESC – Order sorting DESC or ASC
  • titlelen=34 – Headline length (in characters)
  • shorten=0 – Shorten headline (0 or 1)
  • commnum=0 – Display comment number (0 or 1)
  • nosticky=0 – Hide sticky posts (0 or 1)
  • excerpts=none – Show excerpt (none, first or all)
  • content=0 – Use post content as excerpt (0 or 1)
  • excleng=100 – Excerpt length
  • thumb=0 – Show thumbnail with excerpt (0 or 1)
  • tsize=60 – Thumbnail size, set size in px for thumbnail width (height is same); or set in format WIDTHxHEIGHT (example 220×123); or set predefined custom image size (thumbnail, small, medium, large, full or cusotm defined)

Since version 1.4.0 you can use template to display custom formatted output (post line element). Example:
[ppc]

%title_short%

<span class="comments-meta">(<a href="%comments_link%">%comments_num% comments</a>)</span>
<span class="date-meta">%date% @ %time%</span>
<span class="author-meta"><a href="%author_posts_url%">%author_displayname%</a></span>
%thumbnail%
%excerpt% <a href="%link%">[read more]</a>
[/ppc]

Supported macros:

  • %title%
  • %title_short%
  • %post_content%
  • %excerpt%
  • %thumbnail%
  • %link%
  • %comments_num%
  • %comments_link%
  • %comments_form_link%
  • %datetime%
  • %date%
  • %time%
  • %author_displayname%
  • %author_firstname%
  • %author_lastname%
  • %author_posts_url%
  1. Login to your WordPress site and go to page Plugins–>Add New
  2. Type posts per cat to Search field and press Search Plugins button
  3. Click on Install Now link below Posts per Cat name
  4. Click on OK as answer to question Are you sure you want to install this plugin?
  5. Click Activate Plugin link after success installation
  6. Go to Settings–>Posts per Cat page and configure plugin’s options
  7. Put code <?php do_action('ppc'); ?> in your template file (for example in index.php just before closing </div><!-- #content --> tag, or use widget Posts per Cat or shortcode [ppc].

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

I would like to get a list of posts but just from one category

Enter category ID into Include category field, and leave unchecked Only top level categories checkbox.

I set in template macro to display excerpt, but no excerpt displayed

Enable option Use post content as excerpt in widget, or provide shortcode parameter content=1, because you did not have manually set excerpts for posts, so you must ask PPC to generate excerpt from post content.

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
نسخه حجم فایل SHA256 تغییرات دانلود
1.5.0 44 کیلوبایت -
دانلود
×
★★★★★
★★★★★
5.0 /5 (8 نظر)

قیمت:

رایگان

نگارش

1.5.0

آخرین انتشار

18 اردیبهشت 1405

آخرین بروزرسانی

3 ماه پیش

نصب های فعال

300+

نگارش وردپرس

وردپرس 5.0+

تست شده از نسخه

وردپرس 6.8.5

نگارش PHP

PHP 7.4+

نسخه ها

1 نسخه