Escolar Documentos
Profissional Documentos
Cultura Documentos
Easily add one or more posts to any page using simple shortcodes.
== Description ==
Easily add one or more posts to any page using simple shortcodes.
Supports categories, tags, custom post types, custom taxonomies, and more.
You can get all of the same functionality provided by this plugin by modifying your
theme's template files; this plugin just makes it easy for anyone to _pull_ posts
into other areas of the site without having to modify theme files.
Plugin is depending upon your theme's styling; version 1.x of this plugin _does
not_ contain native styles.
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](https://wordpress.org/support/plugin/posts-in-page) or
[contact us](https://ivycat.com/contact/).
== Installation ==
You can install from within WordPress using the Plugin/Add New feature, or if you
wish to manually install:
Not sure how to use the shortcodes above to get what you want? Here are a few
examples to get you started:
** Example 1 **
Let's say you want to pull a specific post called _"What I love about coffee"_,
which has a post ID of 34, somewhere on your About Us page. Your shortcode should
look like this:
`[ic_add_posts ids='34']`
** Example 2 **
Alright, now lets say that you want to pull in all posts from two categories into
your WordPress page. One category is _WordPress Rocks_ and the other is
_WordPress Rolls_. Plus, you'd like to display them three per page, rather than
the default number of posts. Depending on your category slugs, your shortcode
should probably look like this:
** Example 3 **
Now, you're ambitious and want to try something complex. Let's say you've got a
page called _Plugins Are Awesome_ and, in it, you want to pull in posts that match
the following criteria:
If you'd like to use this plugin to pull posts directly into your theme's template
files, you can drop the following WordPress function in your template files,
replacing the `[shortcode]` part with your, custom shortcode.
Some of our clients wanted to output some posts in a specific page without fiddling
with templates.
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.
Simply copy the `posts_loop_template.php` to your theme directory and make changes
as necessary.
You can even rename it - but make sure to indicate that in the shortcode using the
`template='template_name.php'`.
You can even use different templates for each shortcode if you like.
Absolutely.
You bet.
Not likely, but let us know if it does; then we'll *know* we have something
special.
== Screenshots ==
1. Embed a shortcode into a page and it will automatically pull in the post(s) you
need.
2. Embed shortcodes directly in your template using `do_shortcode`.
== Changelog ==
= 1.3.0 =
* File reorganization / housekeeping
* Admin UI cleanup
* Security: Fixed [directory traversal vulnerability]
(https://www.pluginvulnerabilities.com/2017/02/13/authenticated-local-file-
inclusion-lfi-vulnerability-in-posts-in-page/).
* Added ability to optionally include private posts - Thanks StarsoftAnalysis!
= 1.2.4 =
* now you can set `more_tag=""` to remove the `[...] …` that unfortunetly
shows up as `&hellip`
= 1.2.3 =
* Added minor doc tweaks.
= 1.2.2 =
* Added pagination, tweaked to turn off by default.
* Bug fixes.
= 1.2.1 =
* Added code to allow ignoring, or showing of sticky posts. By default, sticky
posts are ignored, but can be re-enabled using the shortcode `[ic_add_posts
ignore_sticky_posts='no']`.
= 1.2.0 =
* Code maintenance to better comply with standards
* Added post pagination
* Plugin now honors default post reading settings under Settings/Reading in the
WordPress Dashboard.
* Improved and simplified documentation.
= 1.1.1 =
* Code maintenance, fix for category bug, also added ability for multiple post
types per shortcode.
= 1.1.0 =
* Code maintenance, squash non-critical debug notices.
= 1.0.10 =
* Added check for published/private posts.
= 1.0.9 =
* Fixed template bug introduced by comments.
= 1.0.8 =
* Code cleanup & indentation
* Added comments and notes to output template file: `posts_loop_template.php`
= 1.0.7 =
* Added Help Page under Setting in WP Dashboard.
= 1.0.6 =
* More plugin housekeeping.
= 1.0.4 =
* Minor housekeeping, added author, updated readme.txt.
= 1.0.3 =
* Added single post or specific post capabilities.
== Upgrade Notice ==
= 1.3.0 =
* Important security and version updates. Please upgrade.
= 1.2.4 =
* Presentational fixes: clean up whitespace, extra tabs, add in customization of
more tag.
= 1.2.3 =
* Housekeeping only; not urgent.
= 1.2.2 =
* Small bug fixes for tags, pagination; not critical.
= 1.2.1 =
* Small feature update, not critical.
= 1.2.0 =
* Important feature update - please upgrade.
= 1.1.1 =
* Small bug fix; please upgrade.
= 1.1.0 =
* Code maintenance & housekeeping - non-critical update.
= 1.0.10 =
* Added feature - non-critical update.
= 1.0.9 =
* Fixed template bug - please update.
= 1.0.8 =
* Added features and documentation - non-critical update.
= 1.0.7 =
* Added Help Page - non-critical update.
= 1.0.6 =
* Plugin housekeeping - non-critical update.
= 1.0.4 =
* Minor housekeeping, added author, updated readme.txt. Non-critical update.
= 1.0.3 =
* Added single post or specific post capabilities. Important feature.