Go to file
Robbert de Kuiper a995fbeb6b Added localization, WPML ready 2017-03-31 14:07:12 +02:00
assets Added localization, WPML ready 2017-03-31 14:07:12 +02:00
languages Added localization, WPML ready 2017-03-31 14:07:12 +02:00
templates Added localization, WPML ready 2017-03-31 14:07:12 +02:00
.gitignore First commit 2017-03-30 16:28:54 +02:00
LICENSE.txt First commit 2017-03-30 16:28:54 +02:00
README.md Set version to beta, updated installation info 2017-03-30 16:33:04 +02:00
ajax-filter-posts-nl_NL.mo Added localization, WPML ready 2017-03-31 14:07:12 +02:00
ajax-filter-posts-nl_NL.po Added localization, WPML ready 2017-03-31 14:07:12 +02:00
ajax-filter-posts.php Added localization, WPML ready 2017-03-31 14:07:12 +02:00
class-ajax-filter-posts.php Added localization, WPML ready 2017-03-31 14:07:12 +02:00
index.php First commit 2017-03-30 16:28:54 +02:00

README.md

WordPress Ajax Filter Posts

Description

A WordPress plugin to filter posts with taxonomies terms and load more posts via Ajax. You can add posts and filters via a shortcode on any page.

[ajax_filter_posts post_type='recipe' tax="meal_type, food_type, diet_type"  posts_per_page="12"]

This plugins uses no dependencies.

Parameters

  • post_type Post type to show. Default post.

  • tax A comma seperated list of taxonomies to filter the post by. Default post_term.

  • post_per_page Numbers of maximum posts to retreive at a time. Default 12.

Motivation

I build a lot of sites that needed a functionality like this and decided to create a plugin for it. Although there are a lot of plugins doing something like this, they usually add a lot of bloat and is very user centered. This is for a developer easier to implement, adept, update and keeps te code cleaner.

Installation

Clone this repo to your plugins or mu-plugins folder.

License

GNU GENERAL PUBLIC LICENSE