Posts in Page - Version 1.0.10

Version Description

  • Added check for published/private posts.
Download this release

Release Info

Developer sewmyheadon
Plugin Icon 128x128 Posts in Page
Version 1.0.10
Comparing to
See all releases

Version 1.0.10

assets/desc.php ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div id="side-sortables" class="meta-box-sortables ui-sortable">
2
+
3
+ <div class="meta-box-sortables" style="min-height: 0">
4
+ <div id="ivycat_donate" class="postbox">
5
+ <h3 class="hndle"><span>Help &amp; Support</span></h3>
6
+ <div class="inside">
7
+ <div class="inside_wrap">
8
+ <h4>Questions, bugs, or great ideas?</h4>
9
+ <p><a href="http://wordpress.org/support/plugin/posts-in-page">Visit our plugin support page</a>.</p>
10
+ </div>
11
+ </div>
12
+ </div>
13
+ </div>
14
+
15
+ <div class="meta-box-sortables" style="min-height: 0">
16
+ <div id="ivycat_connect" class="postbox">
17
+ <h3 class="hndle"><span>Connect with IvyCat!</span></h3>
18
+ <div class="inside">
19
+ <div class="inside_wrap">
20
+ <!-- Begin MailChimp Signup Form -->
21
+ <div id="mc_embed_signup" class="clearfix">
22
+ <form action="http://ivycat.us1.list-manage.com/subscribe/post?u=599f2f6b712f346e11c2930d4&amp;id=6ee02404ab" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
23
+ <label for="mce-EMAIL">Signup for email updates</label>
24
+ <input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required>
25
+ <input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button">
26
+ </form>
27
+ </div>
28
+ <!--End mc_embed_signup-->
29
+
30
+ <hr />
31
+
32
+ <ul class="ivy_social clearfix">
33
+ <li class="ic_fb"><a href="http://www.facebook.com/ivycatweb">Facebook</a></li>
34
+ <li class="ic_tw"><a href="http://twitter.com/ivycatweb">Twitter</a></li>
35
+ <li class="ic_li"><a href="http://www.linkedin.com/company/ivycat-web-services">LinkedIn</a></li>
36
+ <li class="ic_rss"><a href="http://wwww.ivycat.com/feed">RSS Feed</a></li>
37
+ <li class="ic_mc"><!-- // MAILCHIMP SUBSCRIBE CODE \\ --><a href="http://eepurl.com/b3_65" target="_blank">Sign up for our free newsletter!</a><!-- \\ MAILCHIMP SUBSCRIBE CODE // --></li>
38
+ </ul>
39
+
40
+ </div>
41
+ </div>
42
+ </div>
43
+ </div>
44
+
45
+ <div class="meta-box-sortables" style="min-height: 0">
46
+ <div id="ivycat_donate" class="postbox">
47
+ <h3 class="hndle"><span>Contribute!</span></h3>
48
+ <div class="inside">
49
+ <div class="inside_wrap">
50
+ <h4>Wanna help make this plugin better?</h4>
51
+ <p>All donations are used to improve our plugins, add features, and support the WordPress community.</p>
52
+ <div>
53
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
54
+ <input type="hidden" name="cmd" value="_s-xclick">
55
+ <input type="hidden" name="hosted_button_id" value="U99TTXD43HJKL">
56
+ <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
57
+ <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
58
+ </form>
59
+ </div>
60
+ <h4>Other ways you can help:</h4>
61
+ <ul>
62
+ <li><a href="http://wordpress.org/extend/plugins/page-specific-sidebars/">Rate this plugin on WordPress.org</a></li>
63
+ <li><a href="http://twitter.com/home/?status=Check%20out%20the%20Page%20Specific%20Sidebar%20WordPress%20plugin%20from%20IvyCat!%20http%3A%2F%2Fbit.ly%2FOtLVlu">Tweet about this plugin</li>
64
+ </ul>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ </div>
69
+
70
+ <div id="metabox_desc" class="postbox">
71
+ <div class="handlediv" title="Click to toggle">
72
+ <br>
73
+ </div>
74
+ <h3 class="hndle">
75
+ <span>IvyCat Does WordPress!</span>
76
+ </h3>
77
+ <div class="inside">
78
+ <div class="inside_wrap">
79
+ <h4><a href="http://ivycat.com/contact">Contact us</a> if you need:</h4>
80
+ <ul class="link-list">
81
+ <li>WordPress Development</li>
82
+ <li><a href="http://ivycat.com/hosting/web-hosting">WordPress Hosting</a></li>
83
+ <li><a href="http://ivycat.com/web-design">Web Design</a></li>
84
+ </ul>
85
+ </div>
86
+ </div>
87
+ </div>
88
+
89
+ </div>
assets/email.png ADDED
Binary file
assets/facebook.png ADDED
Binary file
assets/feed.png ADDED
Binary file
assets/ic-logo.jpg ADDED
Binary file
assets/linkedin.png ADDED
Binary file
assets/post-page_scripts.js ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ jQuery( 'document' ).ready( function( $ ){
2
+ $( '#posts-in-page-settings .top-menu li a' ).click( function(){
3
+ var toshow = $( this ).attr( 'href' ).replace( '#', '' );
4
+ $( '.top-menu li' ).removeClass( 'current-menu-tab' );
5
+ $( this ).parent( 'li' ).addClass( 'current-menu-tab' );
6
+ $( '.group' ).hide().removeClass( 'current-tab' );
7
+ $( '.' + toshow ).show().addClass( 'current-tab' );
8
+ return false;
9
+ } );
10
+ });
assets/post-page_styles.css ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #posts-in-page-settings h2 span {
2
+ display:block;
3
+ width: 150px;
4
+ float: right;
5
+ }
6
+
7
+ #side-sortables {
8
+ min-height: 300px;
9
+ padding: 0;
10
+ width: 280px;
11
+ color: #333333;
12
+ }
13
+ .postbox {
14
+ background-color: #F5F5F5;
15
+ background-image: -moz-linear-gradient(center top , #F9F9F9, #F5F5F5);
16
+ border-color: #DFDFDF;
17
+ border-radius: 3px 3px 3px 3px;
18
+ box-shadow: 0 1px 0 #FFFFFF inset;
19
+ min-width: 255px;
20
+ position: relative;
21
+ border-style: solid;
22
+ border-width: 1px;
23
+ line-height: 1;
24
+ margin-bottom: 20px;
25
+ padding: 0;
26
+ }
27
+ .postbox .handlediv {
28
+ cursor: pointer;
29
+ float: right;
30
+ height: 30px;
31
+ width: 27px;
32
+ }
33
+ .postbox h3 {
34
+ font-size: 15px;
35
+ font-weight: normal;
36
+ line-height: 1;
37
+ margin: 0;
38
+ padding: 7px 10px;
39
+ color: #464646;
40
+ font-family: Georgia,"Times New Roman","Bitstream Charter",Times,serif;
41
+ text-shadow: 0 1px 0 #FFFFFF;
42
+ background-color: #F1F1F1;
43
+ background-image: -moz-linear-gradient(center top , #F9F9F9, #ECECEC);
44
+ border-bottom-color: #DFDFDF;
45
+ box-shadow: 0 1px 0 #FFFFFF;
46
+ }
47
+ .postbox h4 {
48
+ font-size: 14px;
49
+ font-weight: bold;
50
+ line-height: 1;
51
+ margin: 0;
52
+ padding: 7px 0px;
53
+ color: #464646;
54
+ text-align: left;
55
+ text-shadow: 0 1px 0 #FFFFFF;
56
+ }
57
+ .postbox .inside {
58
+ margin: 6px 0 8px;
59
+ position: relative;
60
+ line-height: 1.4em;
61
+ padding:0 ;
62
+ }
63
+
64
+ .postbox .inside_wrap{
65
+ margin:0 15px;
66
+ }
67
+ .postbox .inside_wrap ul,
68
+ .postbox .inside_wrap p {
69
+ margin-top:0;
70
+ font-size:13px;margin-bottom:0.7em;
71
+ }
72
+ .postbox .inside_wrap ul {
73
+ list-style:disc;
74
+ margin-left:15px;
75
+
76
+ }
77
+ .postbox ul{
78
+ list-style-type: none;
79
+ padding: 0;
80
+ margin-top: 0;
81
+ }
82
+ .postbox ul li.img{
83
+ text-align: center;
84
+ background: #ffffff;
85
+ padding: 10px 0 ;
86
+ }
87
+ .postbox a{
88
+ color: #628C29;
89
+ text-decoration: none;
90
+ }
91
+ .postbox a:hover{
92
+ color: #8EC73C;
93
+ }
94
+
95
+ .postbox .ivy_social li {
96
+ list-style-type:none;
97
+ text-indent:-9999px;
98
+ display:inline;
99
+ }
100
+ .postbox .ivy_social li a {
101
+ display:block;
102
+ float:left;
103
+ width:16px;
104
+ height:16px;
105
+ margin:0 12px;
106
+ }
107
+ .postbox .ivy_social li.ic_fb a {
108
+ background: url("facebook.png") no-repeat top left;
109
+ }
110
+ .postbox .ivy_social li.ic_tw a {
111
+ background: url("twitter.png") no-repeat top left;
112
+ }
113
+ .postbox .ivy_social li.ic_li a {
114
+ background: url("linkedin.png") no-repeat top left;
115
+ }
116
+ .postbox .ivy_social li.ic_mc a {
117
+ background: url("email.png") no-repeat top left;
118
+ }
119
+ .postbox .ivy_social li.ic_rss a {
120
+ background: url("feed.png") no-repeat top left;
121
+ }
122
+ #body-wrap {
123
+ margin-top: 25px;
124
+ }
125
+ #body-wrap inside {
126
+ padding: 10px;
127
+ }
128
+ #body-wrap .hndle h3 ul {
129
+ margin-bottom: 0;
130
+ }
131
+ #body-wrap .hndle{
132
+ margin-bottom: 10px;
133
+ }
134
+ #body-wrap .hndle a{
135
+ font-size: 18px;
136
+ }
137
+ #body-wrap .hndle li.current-menu-tab a{
138
+ font-size: 21px;
139
+ font-weight: bold;
140
+ }
141
+ #posts-in-page-settings #body-wrap{
142
+ width: 55%;
143
+ float:left;
144
+ }
145
+ #posts-in-page-settings #sidebar-wrap{
146
+ width: 35%;
147
+ float:left;
148
+ margin: 25px 0 0 20px;
149
+ }
150
+ #posts-in-page-settings .top-menu{
151
+ width: 100%;
152
+ }
153
+
154
+ #posts-in-page-settings .top-menu li{
155
+ margin-bottom: 0px;
156
+ text-align: center;
157
+ }
158
+ #posts-in-page-settings .settings{
159
+ padding: 10px;
160
+ }
161
+ #posts-in-page-settings .help{
162
+ margin-top: 20px;
163
+ padding: 10px;
164
+ }
165
+ .clearfix:before, .clearfix:after {
166
+ content: ""; display: table;
167
+ }
168
+ .clearfix:after {
169
+ clear: both;
170
+ }
171
+ .clearfix {
172
+ *zoom: 1;
173
+ }
174
+ #ivycat_donate form input[type="image"] {
175
+ margin:0 auto;
176
+ display:block;
177
+ }
178
+
179
+ /* MailChimp Form Embed Code - Slim - 08/17/2011 */
180
+ #mc_embed_signup form {
181
+ display:block; position:relative; text-align:left; padding:10px 0 10px 0;width: 250px;
182
+ }
183
+ #mc_embed_signup h2 {
184
+ font-weight:bold; padding:0; margin:15px 0; font-size:1.4em;
185
+ }
186
+ #mc_embed_signup input {
187
+ border:1px solid #999; -webkit-appearance:none;
188
+ }
189
+ #mc_embed_signup input[type=checkbox] {
190
+ -webkit-appearance:checkbox;
191
+ }
192
+ #mc_embed_signup input[type=radio] {
193
+ -webkit-appearance:radio;
194
+ }
195
+ #mc_embed_signup input:focus {
196
+ border-color:#333;
197
+ }
198
+ #mc_embed_signup .button {
199
+ clear:both; background-color: #aaa; border: 0 none; border-radius:4px; color: #FFFFFF; cursor: pointer; display: inline-block; font-size:15px; font-weight: bold; height: 32px; line-height: 32px; margin: 0 5px 10px 0; padding:0; text-align: center; text-decoration: none; vertical-align: top; white-space: nowrap; width: auto;
200
+ }
201
+ #mc_embed_signup .button:hover {
202
+ background-color:#777;
203
+ }
204
+ #mc_embed_signup .small-meta {
205
+ font-size: 11px;
206
+ }
207
+ #mc_embed_signup .nowrap {
208
+ white-space:nowrap;
209
+ }
210
+ #mc_embed_signup label {
211
+ display:block; font-size:14px; padding-bottom:10px; font-weight:bold;color:#464646
212
+ }
213
+ #mc_embed_signup input.email {
214
+ display:block; padding:8px 0; margin:0 0 10px 0; text-indent:5px; width:58%; min-width:130px;float:left;
215
+ }
216
+ #mc_embed_signup input.button {
217
+ display:block; clear:none; background:#628C29; width:35%; margin:0 0 10px 0; min-width:90px;float:right;text-shadow:0 1px 0 #666;
218
+ }
219
+ #mc_embed_signup div#mce-responses {
220
+ float:left; top:-1.4em; padding:0em .5em 0em .5em; overflow:hidden; width:90%;margin: 0 5%; clear: both;}
221
+ #mc_embed_signup div.response {
222
+ margin:1em 0; padding:1em .5em .5em 0; font-weight:bold; float:left; top:-1.5em; z-index:1; width:80%;
223
+ }
224
+ #mc_embed_signup #mce-error-response {
225
+ display:none;
226
+ }
227
+ #mc_embed_signup #mce-success-response {
228
+ color:#529214; display:none;
229
+ }
230
+ #mc_embed_signup label.error {
231
+ display:block; float:none; width:auto; margin-left:1.05em; text-align:left; padding:.5em 0;
232
+ }
233
+
234
+
assets/posts_in_page_help_view.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="wrap" id="posts-in-page-settings">
2
+ <div id="icon-options-general" class="icon32"></div>
3
+ <h2>Posts in Page</h2>
4
+ <div id="body-wrap" class="meta-box-sortables ui-sortable">
5
+ <div id="metabox_desc" class="postbox">
6
+ <div class="handlediv" title="Click to toggle">
7
+ <br>
8
+ </div>
9
+ <div class="hndle">
10
+ <h3><ul class="top-menu clearfix">
11
+ <li class="menu-item"><a href="#help">Help</a></li>
12
+ </ul></h3>
13
+ </div>
14
+ <div class="group help inside">
15
+ <ul>
16
+ <li>
17
+ <strong>[ic_add_posts]</strong> - Add all posts to a page (limit to what number posts in WordPress is set to). This essentially makes the page look like a blog.
18
+ </li>
19
+ <li>
20
+ <strong>[ic_add_posts post_type='post_type' ids='1,2,3']</strong> - show posts with certain IDs (currently only one post type per category)
21
+ </li>
22
+ <li>
23
+ <strong>[ic_add_posts id='1']</strong> - show a single post with the given ID ( must give post type if not post )
24
+ </li>
25
+ <li>
26
+ <strong>[ic_add_posts showposts='5']</strong> - limit number of posts (or override default setting)
27
+ </li>
28
+ <li>
29
+ <strong>[ic_add_posts orderby='title' order='ASC']</strong> - orderby title - supports all WordPress orderby variables. Order is optional, WP default
30
+ </li>
31
+ <li>
32
+ <strong>[ic_add_posts category='category-slug']</strong> - Show posts within a specific category. Uses slugs, and can have multiple categories separate by commas. category-1,category2, etc (no spaces.)
33
+ </li>
34
+ <li>
35
+ <strong>[ic_add_posts post_type='post-type']</strong> - Show posts that belong to a specific post type (only one post type right now)
36
+ </li>
37
+ <li>
38
+ <strong>[ic_add_posts tax='taxonomy' term='term']</strong> - limit posts to those that exist in a taxonomy and have a specific term. Both are required for either one to work.
39
+ </li>
40
+ <li>
41
+ <strong>[ic_add_posts template='template-in-theme-dir.php']</strong> - In case you want to style your markup, add meta data, etc. Each shortcode can reference a different template. These templates must exist in the theme directory.
42
+ Or any combination above.
43
+ </li>
44
+ </ul>
45
+ </div>
46
+ </div>
47
+ </div>
48
+ <div id="sidebar-wrap">
49
+ <?php require_once 'desc.php'; ?>
50
+ </div>
51
+ </div>
assets/postspagehelp.css ADDED
File without changes
assets/twitter.png ADDED
Binary file
license.txt ADDED
@@ -0,0 +1,280 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 2, June 1991
3
+
4
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6
+ Everyone is permitted to copy and distribute verbatim copies
7
+ of this license document, but changing it is not allowed.
8
+
9
+ Preamble
10
+
11
+ The licenses for most software are designed to take away your
12
+ freedom to share and change it. By contrast, the GNU General Public
13
+ License is intended to guarantee your freedom to share and change free
14
+ software--to make sure the software is free for all its users. This
15
+ General Public License applies to most of the Free Software
16
+ Foundation's software and to any other program whose authors commit to
17
+ using it. (Some other Free Software Foundation software is covered by
18
+ the GNU Lesser General Public License instead.) You can apply it to
19
+ your programs, too.
20
+
21
+ When we speak of free software, we are referring to freedom, not
22
+ price. Our General Public Licenses are designed to make sure that you
23
+ have the freedom to distribute copies of free software (and charge for
24
+ this service if you wish), that you receive source code or can get it
25
+ if you want it, that you can change the software or use pieces of it
26
+ in new free programs; and that you know you can do these things.
27
+
28
+ To protect your rights, we need to make restrictions that forbid
29
+ anyone to deny you these rights or to ask you to surrender the rights.
30
+ These restrictions translate to certain responsibilities for you if you
31
+ distribute copies of the software, or if you modify it.
32
+
33
+ For example, if you distribute copies of such a program, whether
34
+ gratis or for a fee, you must give the recipients all the rights that
35
+ you have. You must make sure that they, too, receive or can get the
36
+ source code. And you must show them these terms so they know their
37
+ rights.
38
+
39
+ We protect your rights with two steps: (1) copyright the software, and
40
+ (2) offer you this license which gives you legal permission to copy,
41
+ distribute and/or modify the software.
42
+
43
+ Also, for each author's protection and ours, we want to make certain
44
+ that everyone understands that there is no warranty for this free
45
+ software. If the software is modified by someone else and passed on, we
46
+ want its recipients to know that what they have is not the original, so
47
+ that any problems introduced by others will not reflect on the original
48
+ authors' reputations.
49
+
50
+ Finally, any free program is threatened constantly by software
51
+ patents. We wish to avoid the danger that redistributors of a free
52
+ program will individually obtain patent licenses, in effect making the
53
+ program proprietary. To prevent this, we have made it clear that any
54
+ patent must be licensed for everyone's free use or not licensed at all.
55
+
56
+ The precise terms and conditions for copying, distribution and
57
+ modification follow.
58
+
59
+ GNU GENERAL PUBLIC LICENSE
60
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
+
62
+ 0. This License applies to any program or other work which contains
63
+ a notice placed by the copyright holder saying it may be distributed
64
+ under the terms of this General Public License. The "Program", below,
65
+ refers to any such program or work, and a "work based on the Program"
66
+ means either the Program or any derivative work under copyright law:
67
+ that is to say, a work containing the Program or a portion of it,
68
+ either verbatim or with modifications and/or translated into another
69
+ language. (Hereinafter, translation is included without limitation in
70
+ the term "modification".) Each licensee is addressed as "you".
71
+
72
+ Activities other than copying, distribution and modification are not
73
+ covered by this License; they are outside its scope. The act of
74
+ running the Program is not restricted, and the output from the Program
75
+ is covered only if its contents constitute a work based on the
76
+ Program (independent of having been made by running the Program).
77
+ Whether that is true depends on what the Program does.
78
+
79
+ 1. You may copy and distribute verbatim copies of the Program's
80
+ source code as you receive it, in any medium, provided that you
81
+ conspicuously and appropriately publish on each copy an appropriate
82
+ copyright notice and disclaimer of warranty; keep intact all the
83
+ notices that refer to this License and to the absence of any warranty;
84
+ and give any other recipients of the Program a copy of this License
85
+ along with the Program.
86
+
87
+ You may charge a fee for the physical act of transferring a copy, and
88
+ you may at your option offer warranty protection in exchange for a fee.
89
+
90
+ 2. You may modify your copy or copies of the Program or any portion
91
+ of it, thus forming a work based on the Program, and copy and
92
+ distribute such modifications or work under the terms of Section 1
93
+ above, provided that you also meet all of these conditions:
94
+
95
+ a) You must cause the modified files to carry prominent notices
96
+ stating that you changed the files and the date of any change.
97
+
98
+ b) You must cause any work that you distribute or publish, that in
99
+ whole or in part contains or is derived from the Program or any
100
+ part thereof, to be licensed as a whole at no charge to all third
101
+ parties under the terms of this License.
102
+
103
+ c) If the modified program normally reads commands interactively
104
+ when run, you must cause it, when started running for such
105
+ interactive use in the most ordinary way, to print or display an
106
+ announcement including an appropriate copyright notice and a
107
+ notice that there is no warranty (or else, saying that you provide
108
+ a warranty) and that users may redistribute the program under
109
+ these conditions, and telling the user how to view a copy of this
110
+ License. (Exception: if the Program itself is interactive but
111
+ does not normally print such an announcement, your work based on
112
+ the Program is not required to print an announcement.)
113
+
114
+ These requirements apply to the modified work as a whole. If
115
+ identifiable sections of that work are not derived from the Program,
116
+ and can be reasonably considered independent and separate works in
117
+ themselves, then this License, and its terms, do not apply to those
118
+ sections when you distribute them as separate works. But when you
119
+ distribute the same sections as part of a whole which is a work based
120
+ on the Program, the distribution of the whole must be on the terms of
121
+ this License, whose permissions for other licensees extend to the
122
+ entire whole, and thus to each and every part regardless of who wrote it.
123
+
124
+ Thus, it is not the intent of this section to claim rights or contest
125
+ your rights to work written entirely by you; rather, the intent is to
126
+ exercise the right to control the distribution of derivative or
127
+ collective works based on the Program.
128
+
129
+ In addition, mere aggregation of another work not based on the Program
130
+ with the Program (or with a work based on the Program) on a volume of
131
+ a storage or distribution medium does not bring the other work under
132
+ the scope of this License.
133
+
134
+ 3. You may copy and distribute the Program (or a work based on it,
135
+ under Section 2) in object code or executable form under the terms of
136
+ Sections 1 and 2 above provided that you also do one of the following:
137
+
138
+ a) Accompany it with the complete corresponding machine-readable
139
+ source code, which must be distributed under the terms of Sections
140
+ 1 and 2 above on a medium customarily used for software interchange; or,
141
+
142
+ b) Accompany it with a written offer, valid for at least three
143
+ years, to give any third party, for a charge no more than your
144
+ cost of physically performing source distribution, a complete
145
+ machine-readable copy of the corresponding source code, to be
146
+ distributed under the terms of Sections 1 and 2 above on a medium
147
+ customarily used for software interchange; or,
148
+
149
+ c) Accompany it with the information you received as to the offer
150
+ to distribute corresponding source code. (This alternative is
151
+ allowed only for noncommercial distribution and only if you
152
+ received the program in object code or executable form with such
153
+ an offer, in accord with Subsection b above.)
154
+
155
+ The source code for a work means the preferred form of the work for
156
+ making modifications to it. For an executable work, complete source
157
+ code means all the source code for all modules it contains, plus any
158
+ associated interface definition files, plus the scripts used to
159
+ control compilation and installation of the executable. However, as a
160
+ special exception, the source code distributed need not include
161
+ anything that is normally distributed (in either source or binary
162
+ form) with the major components (compiler, kernel, and so on) of the
163
+ operating system on which the executable runs, unless that component
164
+ itself accompanies the executable.
165
+
166
+ If distribution of executable or object code is made by offering
167
+ access to copy from a designated place, then offering equivalent
168
+ access to copy the source code from the same place counts as
169
+ distribution of the source code, even though third parties are not
170
+ compelled to copy the source along with the object code.
171
+
172
+ 4. You may not copy, modify, sublicense, or distribute the Program
173
+ except as expressly provided under this License. Any attempt
174
+ otherwise to copy, modify, sublicense or distribute the Program is
175
+ void, and will automatically terminate your rights under this License.
176
+ However, parties who have received copies, or rights, from you under
177
+ this License will not have their licenses terminated so long as such
178
+ parties remain in full compliance.
179
+
180
+ 5. You are not required to accept this License, since you have not
181
+ signed it. However, nothing else grants you permission to modify or
182
+ distribute the Program or its derivative works. These actions are
183
+ prohibited by law if you do not accept this License. Therefore, by
184
+ modifying or distributing the Program (or any work based on the
185
+ Program), you indicate your acceptance of this License to do so, and
186
+ all its terms and conditions for copying, distributing or modifying
187
+ the Program or works based on it.
188
+
189
+ 6. Each time you redistribute the Program (or any work based on the
190
+ Program), the recipient automatically receives a license from the
191
+ original licensor to copy, distribute or modify the Program subject to
192
+ these terms and conditions. You may not impose any further
193
+ restrictions on the recipients' exercise of the rights granted herein.
194
+ You are not responsible for enforcing compliance by third parties to
195
+ this License.
196
+
197
+ 7. If, as a consequence of a court judgment or allegation of patent
198
+ infringement or for any other reason (not limited to patent issues),
199
+ conditions are imposed on you (whether by court order, agreement or
200
+ otherwise) that contradict the conditions of this License, they do not
201
+ excuse you from the conditions of this License. If you cannot
202
+ distribute so as to satisfy simultaneously your obligations under this
203
+ License and any other pertinent obligations, then as a consequence you
204
+ may not distribute the Program at all. For example, if a patent
205
+ license would not permit royalty-free redistribution of the Program by
206
+ all those who receive copies directly or indirectly through you, then
207
+ the only way you could satisfy both it and this License would be to
208
+ refrain entirely from distribution of the Program.
209
+
210
+ If any portion of this section is held invalid or unenforceable under
211
+ any particular circumstance, the balance of the section is intended to
212
+ apply and the section as a whole is intended to apply in other
213
+ circumstances.
214
+
215
+ It is not the purpose of this section to induce you to infringe any
216
+ patents or other property right claims or to contest validity of any
217
+ such claims; this section has the sole purpose of protecting the
218
+ integrity of the free software distribution system, which is
219
+ implemented by public license practices. Many people have made
220
+ generous contributions to the wide range of software distributed
221
+ through that system in reliance on consistent application of that
222
+ system; it is up to the author/donor to decide if he or she is willing
223
+ to distribute software through any other system and a licensee cannot
224
+ impose that choice.
225
+
226
+ This section is intended to make thoroughly clear what is believed to
227
+ be a consequence of the rest of this License.
228
+
229
+ 8. If the distribution and/or use of the Program is restricted in
230
+ certain countries either by patents or by copyrighted interfaces, the
231
+ original copyright holder who places the Program under this License
232
+ may add an explicit geographical distribution limitation excluding
233
+ those countries, so that distribution is permitted only in or among
234
+ countries not thus excluded. In such case, this License incorporates
235
+ the limitation as if written in the body of this License.
236
+
237
+ 9. The Free Software Foundation may publish revised and/or new versions
238
+ of the General Public License from time to time. Such new versions will
239
+ be similar in spirit to the present version, but may differ in detail to
240
+ address new problems or concerns.
241
+
242
+ Each version is given a distinguishing version number. If the Program
243
+ specifies a version number of this License which applies to it and "any
244
+ later version", you have the option of following the terms and conditions
245
+ either of that version or of any later version published by the Free
246
+ Software Foundation. If the Program does not specify a version number of
247
+ this License, you may choose any version ever published by the Free Software
248
+ Foundation.
249
+
250
+ 10. If you wish to incorporate parts of the Program into other free
251
+ programs whose distribution conditions are different, write to the author
252
+ to ask for permission. For software which is copyrighted by the Free
253
+ Software Foundation, write to the Free Software Foundation; we sometimes
254
+ make exceptions for this. Our decision will be guided by the two goals
255
+ of preserving the free status of all derivatives of our free software and
256
+ of promoting the sharing and reuse of software generally.
257
+
258
+ NO WARRANTY
259
+
260
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263
+ PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266
+ TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268
+ REPAIR OR CORRECTION.
269
+
270
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
+ POSSIBILITY OF SUCH DAMAGES.
279
+
280
+ END OF TERMS AND CONDITIONS
posts_in_page.php ADDED
@@ -0,0 +1,187 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Plugin Name: Posts in Page
5
+ * Plugin URI: http://wordpress.org/extend/plugins/posts-in-page/
6
+ * Description: Easily add one or more posts to any page using simple shortcodes. Supports categories, tags, custom post types, custom taxonomies, and more.
7
+ * Author: IvyCat Web Services
8
+ * Author URI: http://www.ivycat.com
9
+ * version: 1.0.10
10
+ * License: GNU General Public License v2.0
11
+ * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
+
13
+ ------------------------------------------------------------------------
14
+ IvyCat AJAX Slider, Copyright 2012 IvyCat, Inc. (admins@ivycat.com)
15
+
16
+ This program is free software; you can redistribute it and/or modify
17
+ it under the terms of the GNU General Public License as published by
18
+ the Free Software Foundation; either version 2 of the License, or
19
+ (at your option) any later version.
20
+
21
+ This program is distributed in the hope that it will be useful,
22
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
23
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
+ GNU General Public License for more details.
25
+
26
+ You should have received a copy of the GNU General Public License
27
+ along with this program; if not, write to the Free Software
28
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29
+
30
+ */
31
+
32
+ define( 'POSTSPAGE_DIR', dirname( __FILE__ ) );
33
+ define( 'POSTPAGE_URL', str_replace( ABSPATH, site_url( '/' ), POSTSPAGE_DIR ) );
34
+
35
+ class AddPostsToPage{
36
+
37
+ protected $args;
38
+
39
+ public function __construct(){
40
+ add_shortcode( 'ic_add_posts', array( &$this, 'posts_in_page' ) );
41
+ add_shortcode( 'ic_add_post', array( &$this, 'post_in_page' ) );
42
+ add_action( 'admin_menu', array( &$this, 'plugin_page_init' ) );
43
+ add_filter( 'plugin_action_links_'. plugin_basename( __FILE__ ), array( &$this, 'plugin_action_links' ), 10, 4 );
44
+ }
45
+
46
+ public function plugin_action_links( $actions, $plugin_file, $plugin_data, $context ) {
47
+ if ( is_plugin_active( $plugin_file ) )
48
+ $actions[] = '<a href="' . admin_url('options-general.php?page=posts_in_page') . '">' . __( ' Help', 'posts_in_page' ) . '</a>';
49
+ return $actions;
50
+ }
51
+
52
+ public function posts_in_page( $atts ){
53
+ extract( shortcode_atts( array(
54
+ 'category' => false,
55
+ 'cats' => false,
56
+ 'post_type' => false,
57
+ 'tax' => false,
58
+ 'term' => false,
59
+ 'showposts' => 10,
60
+ 'tag' => false,
61
+ 'template' => false,
62
+ 'ids' => false,
63
+ 'orderby' => false,
64
+ 'order' => false
65
+ ), $atts ) );
66
+ self::set_args( $atts );
67
+ return self::output_posts();
68
+ }
69
+
70
+ public function plugin_page_init(){
71
+ if( !current_user_can( 'administrator' ) ) return;
72
+ $hooks = array();
73
+ $hooks[] = add_options_page( __( 'Posts In Page' ), __( 'Posts In Page' ), 'read', 'posts_in_page',
74
+ array( $this, 'plugin_page') );
75
+ foreach($hooks as $hook) {
76
+ add_action("admin_print_styles-{$hook}", array($this, 'load_assets'));
77
+ }
78
+ }
79
+
80
+ public function load_assets(){
81
+ wp_enqueue_style( 'postpagestyle', POSTPAGE_URL. '/assets/post-page_styles.css' );
82
+ wp_enqueue_script( 'postpagescript', POSTPAGE_URL. '/assets/post-page_scripts.js' );
83
+ }
84
+
85
+ public function plugin_page(){
86
+ require_once 'assets/posts_in_page_help_view.php';
87
+ }
88
+
89
+ protected function output_posts(){
90
+ $page_posts = new WP_Query( $this->args );
91
+ $output = '';
92
+ if( $page_posts->have_posts() ): while( $page_posts->have_posts()):
93
+ $output .= self::add_template_part( $page_posts );
94
+ endwhile; endif;
95
+ wp_reset_postdata();
96
+ return $output;
97
+ }
98
+
99
+ public function post_in_page( $atts ){
100
+ $args = array( 'post_type' => ( $atts['post_type'] ) ? $atts['post_type'] : 'post' );
101
+ if( $atts['id'] ) {
102
+ $ids = explode( ',', $atts['id'] );
103
+ if( count( $ids ) > 1 ):
104
+ $args['post__in'] = $ids;
105
+ $args['posts_per_page'] = count( $ids );
106
+ else:
107
+ $args['p'] = $atts['id'];
108
+ $args['posts_per_page'] = 1;
109
+ endif;
110
+ }
111
+
112
+ $page_posts = new WP_Query( $args );
113
+ //fprint_r( $page_posts );
114
+ $output = '';
115
+ if( $page_posts->have_posts() ): while( $page_posts->have_posts()):
116
+ $output .= self::add_template_part( $page_posts );
117
+ endwhile; endif;
118
+ wp_reset_postdata();
119
+ return $output;
120
+ }
121
+
122
+ protected function set_args( $atts ){
123
+ global $wp_query;
124
+ $this->args = array( 'post_type' => ( $atts['post_type'] ) ? $atts['post_type'] : 'post' );
125
+ $this->args['post_status'] = 'publish';
126
+ if($atts['ids'] ){
127
+ $post_ids = explode( ',', $atts['ids'] );
128
+ $this->args['post__in'] = $post_ids;
129
+ $this->args['posts_per_page'] = count( $post_ids );
130
+ }
131
+ if( $atts['orderby'] ){
132
+ $this->args['orderby'] = $atts['orderby'];
133
+ }
134
+ if( $atts['order'] )
135
+ $this->args['order'] = $atts['order'];
136
+
137
+ if( $atts['template'] ) $this->args['template'] = $atts['template'];
138
+ if( $atts['category'] ){
139
+ $cats = explode( ',', $atts['category'] );
140
+ $this->args['category_name'] = ( count( $cats ) > 1 ) ? $cats : $atts['category'];
141
+ }elseif( $atts['cats'] ){
142
+ $cats = explode( ',', $atts['cats'] );
143
+ $this->args['category_name'] = ( count( $cats ) > 1 ) ? $cats : $atts['cats'];
144
+ }
145
+ if( $atts['tax'] ){
146
+ if( $atts['term'] ){
147
+ $terms = explode( ',', $atts['term'] );
148
+ $this->args['tax_query'] = array(
149
+ array( 'taxonomy' => $atts['tax'], 'field' => 'slug', 'terms' => ( count( $terms ) > 1 ) ? $terms : $atts['term'] )
150
+ );
151
+ }
152
+ }
153
+ if( $atts['tag'] ){
154
+ $tags = explode( ',', $atts['category'] );
155
+ $this->args['tag'] = ( count( $tags ) > 1 ) ? $tags : $atts['tag'];
156
+ }
157
+ if( !$this->args['posts_per_page'] ) $this->args[ 'posts_per_page' ] = $atts['showposts'];
158
+ if( $wp_query->query_vars['page'] > 1 ){
159
+ $this->args['paged'] = $wp_query->query_vars['page'];
160
+ }
161
+ }
162
+
163
+ protected function has_theme_template(){
164
+ $template_file = ( $this->args['template'] ) ? self::current_theme_path() . '/' . $this->args['template'] : self::current_theme_path() . '/posts_loop_template.php';
165
+
166
+ return ( file_exists( $template_file ) ) ? $template_file : false;
167
+ }
168
+
169
+ protected function add_template_part( $ic_posts, $singles=false ){
170
+ if( $singles ){
171
+ setup_postdata( $ic_posts );
172
+ }else{
173
+ $ic_posts->the_post();
174
+ }
175
+ ob_start();
176
+ require ( $file_path = self::has_theme_template() ) ? str_replace( site_url(), '', $file_path ) : 'posts_loop_template.php';
177
+ $output .= ob_get_contents();
178
+ return ob_get_clean();
179
+ }
180
+
181
+ protected function current_theme_path(){
182
+ $theme_data = explode( '/', get_bloginfo( 'stylesheet_directory' ) );
183
+ $theme_path = get_theme_root();
184
+ return $theme_path . '/' . $theme_data[ count( $theme_data ) -1 ];
185
+ }
186
+
187
+ } new AddPostsToPage();
posts_loop_template.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!-- Note: if you make changes to this file, move it to your current theme's
2
+ directory so this file won't be overwritten when the plugin is upgraded. -->
3
+
4
+ <!-- This is the output of the post title -->
5
+ <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
6
+
7
+ <!-- This is the output of the excerpt -->
8
+ <div class="entry-summary">
9
+ <?php the_excerpt(); ?>
10
+ </div>
11
+
12
+ <!-- This is the output of the meta information -->
13
+ <div class="entry-utility">
14
+ <?php if ( count( get_the_category() ) ) : ?>
15
+ <span class="cat-links">
16
+ <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
17
+ </span>
18
+ <span class="meta-sep">|</span>
19
+ <?php endif; ?>
20
+ <?php
21
+ $tags_list = get_the_tag_list( '', ', ' );
22
+ if ( $tags_list ):
23
+ ?>
24
+ <span class="tag-links">
25
+ <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
26
+ </span>
27
+ <span class="meta-sep">|</span>
28
+ <?php endif; ?>
29
+ <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
30
+ <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
31
+ </div>
readme.txt ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Posts in Page ===
2
+ Contributors: dgilfoy, ivycat, sewmyheadon
3
+ Donate link: http://www.ivycat.com/contribute/
4
+ Tags: shortcode, pages, posts, custom post types
5
+ Requires at least: 3.0
6
+ Tested up to: 3.4.1
7
+ Stable tag: 1.0.10
8
+ License: GPLv2 or later
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
+ Easily add a posts loop inside any page without modifying template files.
12
+
13
+ ==Description==
14
+
15
+ Easily add one or more posts to any page using simple shortcodes. Supports categories, tags, custom post types, custom taxonomies, and more.
16
+
17
+ == Notes ==
18
+
19
+ Plugin is depending upon theme styling. Version 1.0 of this plugin does not contain native styles.
20
+
21
+ This is a minimal plugin, function over form. If you would like to extend it, or would like us to extend it in later versions, please post feature suggestions in the plugin's [support forum](http://wordpress.org/support/plugin/posts-in-page) or [contact us](http://www.ivycat.com/contact/).
22
+
23
+ == Installation ==
24
+
25
+ You can install from within WordPress using the Plugin/Add New feature, or if you wish to manually install:
26
+
27
+ 1. Download the plugin.
28
+ 1. Upload the entire `ic_posts_in_page` directory to your plugins folder
29
+ 1. Activate the plugin in your WordPress plugin page
30
+ 1. Start embedding your posts in whatever pages you like.
31
+
32
+ == Usage ==
33
+
34
+ Shortcode usage:
35
+
36
+ * `[ic_add_posts]` - Add all posts to a page (limit to what number posts in WordPress is set to), essentially adds blog "page" to page.
37
+ * `[ic_add_posts ids='1,2,3']` - show one or many posts by specifying the post ID(s) (currently only one post type per shortcode)
38
+ * `[ic_add_posts post_type='post_type']` - show posts from a custom post type by specifying the post type slug ( must give post type if not a standard post )
39
+ * `[ic_add_posts showposts='5']` - limit number of posts (or override default setting)
40
+ * `[ic_add_posts orderby='title' order='ASC']` - orderby title - supports all WP orderby variables. Order is optional, WP default
41
+ * `[ic_add_posts category='category-slug']` - Show posts within a specific category. Uses slugs, can have multiple but separate by commas. category-1,category2, etc (no spaces.)
42
+ * `[ic_add_posts tag='tag-slug']` - Show posts using a specific tag. Like categories, it uses slugs, and can accommodate multiple tags separate by commas. tag-1,tag-2, etc (no spaces.)
43
+ * `[ic_add_posts post_type='post-type']` - Show posts that are a specific post type (only one post type right now)
44
+ * `[ic_add_posts tax='taxonomy' term='term']` - limit posts to those that exist in a taxonomy and have a specific term. Both are required for either one to work
45
+ * `[ic_add_posts template='template-in-theme-dir.php']` - In case you want to style your markup, add meta data, etc. Each shortcode can reference a different template. These templates must exist in the theme directory.
46
+
47
+ Or any combination above.
48
+
49
+ == Screenshots ==
50
+
51
+ 1. Embed a shortcode into a page and it will automatically pull in the post(s) you need.
52
+
53
+ == Frequently Asked Questions ==
54
+
55
+ = What is the point of this plugin? =
56
+
57
+ Some of our clients wanted to output some posts in a specific page without fiddling with templates.
58
+
59
+ This plugin goes well with our [Simple Page Specific Sidebars](http://wordpress.org/extend/plugins/page-specific-sidebars/) plugin, and gives you more granular control of sidebars on specific categories, post-types, etc.
60
+
61
+ = How do I change the output template =
62
+
63
+ Simply copy the posts_loop_template.php to your theme directory and make changes as necessary.
64
+
65
+ You can even rename it - but make sure to indicate that in the shortcode using the `template='template_name.php'`.
66
+
67
+ You can even use different templates for each shortcode if you like.
68
+
69
+ == Changelog ==
70
+
71
+ = 1.0.10 =
72
+ * Added check for published/private posts.
73
+
74
+ = 1.0.9 =
75
+ * Fixed template bug introduced by comments.
76
+
77
+ = 1.0.8 =
78
+ * Code cleanup & indentation
79
+ * Added comments and notes to output template file: `posts_loop_template.php`
80
+
81
+ = 1.0.7 =
82
+ * Added Help Page under Setting in WP Dashboard.
83
+
84
+ = 1.0.6 =
85
+ * More plugin housekeeping.
86
+
87
+ = 1.0.4 =
88
+ * Minor housekeeping, added author, updated readme.txt.
89
+
90
+ = 1.0.3 =
91
+ * Added single post or specific post capabilities.
92
+
93
+ == Upgrade Notice ==
94
+
95
+ = 1.0.10 =
96
+ * Added feature - non-critical update.
97
+
98
+ = 1.0.9 =
99
+ * Fixed template bug - please update.
100
+
101
+ = 1.0.8 =
102
+ * Added features and documentation - non-critical update.
103
+
104
+ = 1.0.7 =
105
+ * Added Help Page - non-critical update.
106
+
107
+ = 1.0.6 =
108
+ * Plugin housekeeping - non-critical update.
109
+
110
+ = 1.0.4 =
111
+ * Minor housekeeping, added author, updated readme.txt. Non-critical update.
112
+
113
+ = 1.0.3 =
114
+ * Added single post or specific post capabilities. Important feature.
115
+
116
+ == Road Map ==
117
+
118
+ 1. Suggest a feature...
119
+
120
+