-
Notifications
You must be signed in to change notification settings - Fork 17
/
readme.txt
executable file
·161 lines (107 loc) · 8.18 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
=== Isotope Posts ===
Contributors: mandiwise
Tags: isotope, javascript, posts
Requires at least: 3.5.1
Tested up to: 4.2.2
Stable tag: 2.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Allows you to use Metafizzy's Isotope to display feeds of WordPress posts using simple shortcodes. Works with custom post types and custom taxonomies too.
== Description ==
Isotope Posts is a simple WordPress implementation of Metafizzy's javascript Isotope plugin. Use the plugin settings page to customize Isotope options and create loops of WordPress posts, then implement them on your site using simple shortcodes. Magic.
Some features:
* No need to muck around with javascript or theme files – implement Isotope directly in the WordPress editor with a simple shortcode!
* Includes essential Isotope features, including the option for a filter menu, sorting options, and layout options
* Hide posts from displaying based on category, post tag, or custom taxonomy terms
* Grab the post's featured image include with the excerpt (if one is set)
* Minimal included css makes it easier to customize the look and feel of the loop output for your site
**New in v2**
* Create and save as many Isotope shortcodes as you want to use on multiple pages throughout your site
* Paginate your loop of posts using infinite scrolling (rather than loading them all at once)
* Now uses v2 of the javascript Isotope plugin
* Plays nice with WordPress Multisite
= Are you upgrading from v1.X? =
If you're upgrading to v2+ of Isotope Posts from v1.X, you'll need to run the [Isotope Posts v2 Migrator plugin](https://github.com/mandiwise/isotope-posts-migrator) first. Be sure to deactivate and delete the migrator plugin before attempting to re-activate of Isotope Posts.
= A note re: licensing: =
Metafizzy's javascript Isotope plugin is licensed under MIT and free to use for non-commercial, personal, open-source projects only. Find out more about [commercial licensing](http://isotope.metafizzy.co/license.html) if you plan on using this plugin for commercial purposes.
== Installation ==
1. Extract the `isotope-posts-master.zip` and remove `-master` from the extracted directory name
2. Upload the `isotope-posts` folder and its contents to the `/wp-content/plugins/` directory
3. Activate the plugin through the 'Plugins' menu in WordPress
4. Go to the Settings > Isotope Posts page and adjust the settings as needed.
== Frequently Asked Questions ==
= How do I make this thing work in my theme? =
To implement Isotope Posts on your site, simply head over to the Isotope Posts settings page in your WordPress admin area, create a loop of posts with your preferred options and then save it. Next, grab the unique shortcode for the loop you just saved (e.g. `[isotope-posts id="YOUR_UNIQUE_ID"]`) and embed it in a page in your site.
= How do I make this thing work in a template file? =
You can use `do_shortcode` to directly embed an Isotope Posts loop in a template file (instead of pasting it into the WYSIWYG editor for a given page on your site).
However, in order to ensure that the Isotope Posts plugin has the smallest possible footprint on your site, the plugin only loads the required Isotope CSS file on pages where it finds an Isotope Posts shortcode inside `the_content` (i.e. embedded in the WYSIWYG editor). In order to manually add the required CSS when you use `do_shortcode` within your theme files, set an additional attribute on your shortcode as follows:
`[isotope-posts id="YOUR_UNIQUE_ID" load_css="true"]`
**NOTE:** You do NOT need to add the `load_css` attribute to your shortcode if you are simply pasting it into a page's WYSIWYG editor.
= What kind of Isotope options are available? =
Isotope Posts takes advantage of a number of the original javascript plugins's options. On the plugin settings page you have the option to:
* Add a filter menu (based on post categories or tags, or a custom taxonomy)
* Arrange your posts descending by date or ascending alphabetically by title
* Choose whether to use display evenly in horizontal rows or masonry-style
* Add pagination to your posts using infinite scrolling
= Does this plugin work with custom post types and taxonomies? =
Absolutely. To use a custom post type, simply pick it from the select menu on the plugin settings page. Same goes for using a custom taxonomy for a filter menu.
= Why do things get weird when I try to add a filter menu and use infinite scrolling? =
As the author of the javascript Isotope plugin has pointed out in the past, using infinite scrolling with filtering can create a very odd user experience and you probably want to avoid doing this.
In my experience, the only time that using filters with infinite scrolling isn't completely weird is when you have a lot of posts in your selected post type AND the terms for the taxonomy you use to create your filter menu are more or less evenly spread across your posts. If you must go down this road, please be sure to test this thoroughly before you unleash it on your users.
= Why does the plugin break when I try to add two Isotope Posts shortcodes on one page? =
Play it safe. While you can implement multiple Isotope Posts shortcodes throughout your site, you'll only want to add one at a time on any given page. Things go a little bit sideways in the javascript when you try to load two Isotope Posts shortcodes on a single page.
= Is it localized? =
Yes, but no translations are available quite yet.
== Screenshots ==
1. List of saved Isotope Post shortcodes
2. Isotope Posts settings modal
3. Sample of featured image and excerpt output
== Changelog ==
= 2.1 =
* Add `before_isotope_title`, `before_isotope_content`, and `after_isotope_content` action hooks to allow customization of Isotope item content.
* Improve responsiveness of admin settings lightbox.
* Localize additional strings.
= 2.0.9 =
* Fix bug where clicking the "See All" filter would jump the browser to the top of the page.
= 2.0.8 =
* Fix filter menu so that it doesn't show excluded terms when the filter menu taxonomy is the same as the limiting taxonomy (again)
= 2.0.7 =
* Adjust pre-filling behaviour when using filtering and infinite scrolling together (even though this is not advisable) to address JS errors
* Remove old Isotope js file
* Update Isotope library to 2.0.1
= 2.0.6 =
* Fix pagination bug when implementing a loop on a static homepage
= 2.0.5 =
* Add check on post elements when a filter menu has been added but the post doesn't have any taxonomy terms assigned (props [@crondeau](https://github.com/crondeau))
= 2.0.4 =
* Add ability to manually load public CSS when using `do_shortcode`
* Improve responsiveness of public CSS
= 2.0.3 =
* Ensure scripts and styles only load when the shortcode is present (for real this time...)
= 2.0.2 =
* Fixed issue with settings array saving incorrectly when plugin options did not exist yet
* Remove automatic activation for new blogs in multisite
= 2.0.1 =
* Fixed fatal error on activation
= 2.0 =
* Refactored all plugin code
* Revamped the plugin settings page to allow users to save multiple post loops (this is a breaking change)
* Add ability to paginate posts using infinite scroll
= 1.1.3 =
* Made taxonomy classes conditional on loop items to stop php warning when not using a filter menu (props [@jengalas](https://github.com/jengalas)).
= 1.1.2 =
* Added else condition to handle post loop with no results
* Updated call to admin.js file so it only loads where needed
= 1.1.1 =
* Fixed bug when trying to filter post display by category or post tag.
* Changed filter menu to automatically remove user-excluded terms if the selected menu taxonomy is the same as the limiting taxonomy.
* Reversed "Limiting Taxonomy" logic so that entered terms slugs are excluded from display (as opposed to the only terms displayed).
* More code refactoring.
= 1.1 =
* Added ability to limit post display to specific taxonomy and terms.
* Light code refactoring.
= 1.0 =
* Initial plugin release.
== Credit Roll ==
* Tom McFarlin's time-saving [WordPress Plugin Boilerplate](https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate). Why start from scratch when you don't have to?
* David DeSandro's (Metafizzy) [Isotope](http://isotope.metafizzy.co/index.html) jQuery plugin. Minimum js input, maximum interactive fun.