Same Category Posts

Description

Same Category Posts shows a list of related posts with a same Post Type to the current post. The widget is only shown on single post pages. Forked from Related Posts Widget.

Tip Top Press

We’re Tip Top Press and create widgets for WordPress. If you want to know about what we’re working on and you are interested in backgrounds then you can read all newes storys on our blog.

Features

  • Shows a list of related posts.
  • Option which Post Type should be the same (related) to the current post.
  • Custom Post Types support.
  • Option exclude one or multi categories or terms.
  • Option to filter by popular posts (by comment count).
  • Option separate categories if more than one is assigned.
  • Set how many posts to show (overall and by category).
  • Option exclude current post.
  • Placeholders in title string (e.g. “There are a lot of %cat%-News.” -> “There are a lot of Tech-News.”).
  • Filter hook for the post titles ‘widget_title’.
  • Option to show post thumbnail and set width & height.
  • Option to crop thumbnails dimensions with CSS.
  • Option to put thumbnail on top.
  • Option to make the widget title link to the category page.
  • Option to show/hide the title.
  • Option to show the post excerpt and how long (in words).
  • Option change excerpt ‘more’ text.
  • Option to show the post date, author and comment count.
  • Multiple widgets.

Placeholder

In text boxes %cat% will replaced with the (first assigned) category name, e.g. “There are a lot of %cat%-News.” -> “There are a lot of Tech-News.”

And %cat-all% will replaced with all assigned category name, e.g. “Special offers for %cat-all%!” -> “Special offers for houses, flats, apartments.”

Contribute

While using this plugin if you find any bug or any conflict, please submit an issue at
Github (If possible with a pull request).

Screenshots

  • Option to exclude categories (and terms) and filter by popular posts (by comment count).
  • Front end of the widget using a default WordPress Theme.
  • Option 'Separate categories' (If more than one assigned) will separate and link to all assigned categories.
  • The widget configuration dialog.

Installation

Automatic installation

Automatic installation is the easiest option as WordPress handles the file transfers itself and you don’t need to leave your web browser. To do an automatic install of Related Posts Widget, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.

In the search field type “Same Category Posts” and click Search Plugins. Once you’ve found plugin, you can install it by simply clicking “Install Now”. Then, go to plugins page of WordPress admin activate the plugin. Now, goto the Widgets page of the Appearance section and configure the Related Posts widget.

Manual installation

  1. Download the plugin.
  2. Upload it to the plugins folder of your blog.
  3. Goto the Plugins section of the WordPress admin and activate the plugin.
  4. Now, goto the Widgets page of the Appearance section and configure the Related Posts widget.

Read more about installting plugins at WordPress Codex

FAQ

Installation Instructions

Automatic installation

Automatic installation is the easiest option as WordPress handles the file transfers itself and you don’t need to leave your web browser. To do an automatic install of Related Posts Widget, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.

In the search field type “Same Category Posts” and click Search Plugins. Once you’ve found plugin, you can install it by simply clicking “Install Now”. Then, go to plugins page of WordPress admin activate the plugin. Now, goto the Widgets page of the Appearance section and configure the Related Posts widget.

Manual installation

  1. Download the plugin.
  2. Upload it to the plugins folder of your blog.
  3. Goto the Plugins section of the WordPress admin and activate the plugin.
  4. Now, goto the Widgets page of the Appearance section and configure the Related Posts widget.

Read more about installting plugins at WordPress Codex

Post title filter example

To use the the hook add a filter ‘widget_title’ in wp-content\Themes[your-Theme]\functions.php:

function cruise_shortcode_iconship( $html ) {
return “prefix-” . $html . “-suffix”;
}
add_filter( ‘widget_title’, ‘cruise_shortcode_iconship’ );

The feature image dimention are not correctly displayed?

Enable the option “Use CSS cropping”. This option don’t care about stored setting (Settings > Media) or added image sizes. What is ‘CSS feature image cropping’?

Excerpt length filter doesn’t works

When a post has no manual excerpt WordPress generates an excerpt automatically by selecting the first 55 words of the post or the first words number setted by the excerpt filter length. This means the excerpt length filter works only with automatic excerpt. If you manually added an excerpt, you’d want it all to be shown.
WordPress Codex: Excerpt, automatic excerpt, and teaser

I want the title as a link pointing to the selected Categorie page?

Enable the check box “Make widget title link”.

Exclude (-terms) text area

To multiselect or clear terms in the “exclude”-text area hold CTRL-key + mouse click

Reviews

Wow!

I was looking for showing post list from the same category only, then after few weeks search, I found this plugin. Salute to you for this great plugin.

Not as Described, Poor Customer Service

I bought this product because I wanted my posts to look exactly like the pictures.

I initially had trouble installing it due to an error message, and customer service responded promptly that I had to uninstall the free version before installing the premium version.

However, upon installing the premium version, I did not feel that it operated exactly as described. The product did not display a vertical scrolling news ticker for my WordPress blog and display posts as displayed in the picture. It looked different and, therefore, I had no use for the product.

I emailed customer service THE SAME NIGHT that I purchased it for a refund and NEVER got a response.

When I later disputed the purchase through Paypal, the company promptly responded but refused to give a refund. Luckily, I am only out $12 but I am advising potential buyers not to make the same mistake that I did and purchase the product.

Great work!

Thank you for the great plugin! The support is also on the high level. The author added a necessary feature for me just in a couple of days! Now you can use shortcodes in widget titles 🙂

Thank you,
Oksana

Sweet!

Instead of forcing the user to find the category and click it, a collection of related posts appears right there in the sidebar, just begging to be clicked.

Really great functionality. A “must have”, in my book.

Read all 9 reviews

Contributors & Developers

“Same Category Posts” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Same Category Posts” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.1.0 – November 02 2017

  • Custom Post Type support

1.0.12 – June 15 2017

  • Bugfix for if widget title as a link, there are HTML special characters in the rendered output
  • Bugfix for no posts are displayed, if some categories are excluded

1.0.11 – May 20 2017

  • Add a filter hook for the post titles ‘widget_title’
  • Add option to format the date

1.0.10 – January 01 2017

  • Patch panels do not open

1.0.9 – December 31 2016

  • Add option to exclude multi categories (pull-request from arielcannal)
  • Add panels on the admin sites

1.0.8 – Juli 07 2016

  • Add option seperate categories if more than one is assigned
  • Add option change excerpt ‘more’ text.
  • Title show and link to all referenced categories
  • Additional placeholder %cat-all% gets (show and link) all referenced categories

1.0.7 – June 26 2016

  • Show all assigned categories

1.0.6 – June 05 2016

  • Added option to show post author

1.0.5 – April 02 2016

  • Added Custom Post Types support

1.0.4 – April 02 2016

  • Add option CSS cropping for thumbnails.

1.0.3

  • Placeholder in title string
  • Added Option exclude current post
  • CSS class for current post
  • Bugfixes

1.0.2

  • Added Option to change ordering of posts
  • Added Option to make the widget title link to the category page
  • Added Option to put thumbnail on top
  • Added Option to show/hide the title
  • Fixed no background bug.

1.0.1

  • Option exclude a category.

1.0

  • Initial release.