=== Associated Posts ===
Contributors: Dennis Hoppe
Tags: widget, widgets, sidebar, post, posts, plugin, admin, image, images, page, pages, links, associate, association, attach, list, connect, content, cms, category, categories, tag, tags, author, authors, post-page-associator, associated-posts, widget,Post,plugin,admin,posts,sidebar,comments,google,images,page,image,links
Requires at least: 3.4
Tested up to: 3.8
Stable tag: trunk
The award-winning Associated Posts Lite (formerly Post Page Associator) Plugin enables you to display posts on a page.
== Description ==
[Associated Posts](http://dennishoppe.de/en/wordpress-plugins/associated-posts-pro) enables you to associate posts and pages with each other and to display posts on any pages. You can easily select posts in the "Edit Page" Mode and attach them to this page. [Associated Posts Lite](http://dennishoppe.de/en/wordpress-plugins/associated-posts-pro) is the subsequent version of "[Post Page Associator](http://dennishoppe.de/en/wordpress-plugins/post-page-associator)".
Btw: [Associated Posts](http://dennishoppe.de/en/wordpress-plugins/associated-posts-pro) is available as [Premium Plugin](http://dennishoppe.de/en/wordpress-plugins/associated-posts-pro) too.
= Handling =
The handling is very easy. When you are going to edit a page you will see a box with the title "[Associated Posts](http://dennishoppe.de/en/wordpress-plugins/associated-posts-pro)". There you can choose posts which should attached to this page. In this version you cannot set the number of posts which should be shown on the page or other settings like the post order. These options are available in the [Pro Version](http://dennishoppe.de/en/wordpress-plugins/associated-posts-pro).
= Settings =
You can change the association settings in WP Admin Panel » Settings » [Associated Posts](http://dennishoppe.de/en/wordpress-plugins/associated-posts-pro).
= Shortcode =
In case you won't have the [associated posts](http://dennishoppe.de/en/wordpress-plugins/associated-posts-pro) at the end of your page you can use the [associated_posts]
shortcode anywhere in your pages content. So the posts will be shown at the place you inserted the shortcode. (The shortcode has no parameters.)
= Customization =
If you need a customized template of the associated posts. E.g. as list or with author, date, time or meta data feel free to send me an e-mail. For a small fee I will write a customized template for you. Don't be shy. ;)
= How to write an own customization =
A template is a php file which renders the output of the associated posts (a WP Query). You can find example template files in the plugin folder (templates/). You can store these templates in:
* plugin templates folder (or a sub folder) (inadvisable)
* your theme folder (or a sub folder)
The default header of a template looks like that:
/*
AP Template: Example Template
Description: This is the description.
Version: 1.0
Author: Your name
Author URI: http://example.com
Author E-Mail: yourname@example.com
*/
The only required information in the header is the "AP Template" line. So the Plugin knows this is an AP Template.
Please notice that your template will be removed within the next plugin update if you place somewhere inside the plugin folder.
= For Theme Designers =
Feel free to create a template and add it to your theme. The plugin will find it automatically. You can find a working example file of a template in the plugin directory (*templates/title-excerpt-thumbnail/title-excerpt-thumbnail.php*). Just copy it in your template directory and modify it until it fits your themes design.
If you want to disable the auto append feature of the plugin you can use the '*associated_posts_auto_append*' filter.
Just add this line of code to your *functions.php*:
Add_Filter ('associated_posts_auto_append', Create_Function('',' return False; ') );
= For real developers ;) =
As a real developer you can easily access to the associated posts via functions:
Global $wp_plugin_associated_posts;
$wp_plugin_associated_posts->Get_Associated_Posts ($page_id = Null){
/* $page_id: the id of the page which associated posts you want to read.
if $page_id = Null, the plugin will read from current page.
returns: By default the function returns a WP_Query Object.
The object is very well documented in the Codex.
If there are no posts this function returns false.
*/
}
Real developers love the clout of their code. And as a real WordPress developer you know about the magic of hooks and filters. The Associated Posts Plugin uses a filter with the name '*associated_posts_template*'. You can use this filter to set the template file of the associated posts. (You can overwrite the users template option with this filter.) You can find an example file of this template in the plugin directory (*templates/title-excerpt-thumbnail.php*).
= Questions =
I know you have many questions – my mailbox is the proof. ;) But unfortunately I cannot give support for free plugins. There is a separate support package available for the [Pro Version](http://dennishoppe.de/en/wordpress-plugins/associated-posts-pro) of this plugin. Please use it. Of course you can hire me for consulting, support, programming and customizations at any time.
= In the Press =
* Post-Page-Associator has been granted the "Famous Software" Award! [To the post »](http://download.famouswhy.com/post_page_associator/)
* [Tom Altman](http://tomaltman.com/) said "*Why are posts and pages so oil and water in WordPress? This plugin bridges the gap and makes them more like chocolate and peanut butter.*" [To the post »](http://tomaltman.com/post-page-association/)
* [Annie Stasse](http://www.penseelibre.fr/) posted "Association des pages avec billets, catégories, mots-clés". [To the post »](http://www.penseelibre.fr/association-des-pages-avec-billets-categories-mots-cles/)
* Nancy Golliday made this video: "Inserting Images and Using Featured Image in WordPress Post Page Associator". [To the post »](http://www.youtube.com/watch?v=9CjbWQRiZ1I)
* How to Use Wordpress as a Full CMS by Melody Clark. [To the post »](http://www.associatedcontent.com/article/5798146/how_to_use_wordpress_as_a_full_cms.html)
* 19 Must Have Plugins for a WordPress Blog. [To the post »](http://techpatel.com/19-must-have-plugins-for-a-wordpress-blog/)
* [CMSMind](http://www.cmsmind.com/) wrote "How to link Posts to a Page in WordPress" [To the post »](http://www.cmsmind.com/appending-posts-to-a-page/)
* [MONDOLINGUA](http://www.mondolingua.com/dcs/) schrieb "Artikel komfortabel auf bestimmten Seiten anzeigen" [To the post »](http://www.mondolingua.com/dcs/2011/09/wordpress-artikel-komfortabel-auf-bestimmten-seiten-anzeigen-post-page-associator/)
* [TechieTalk](http://www.techietalk.in/2013/02/attach-posts-to-static-page-in-wordpress.html): "Attach posts to a static page in WordPress" [To the post »](http://www.techietalk.in/2013/02/attach-posts-to-static-page-in-wordpress.html)
= Language =
* This Plugin is available in English.
* Dieses Plugin ist in Deutsch verfügbar. ([Dennis Hoppe](http://DennisHoppe.de/))
* Cette extension est disponible en Français. ([Quentin Turquet](http://www.tradpress.fr/))
* Dette plugin er tilgængelig på Dansk. ([Thomas Jensen](http://artikelforlaget.dk/))
* Este plugin está disponible en Español. (David Sánchez)
= Translate this plugin =
If you have translated this plugin in your language feel free to send me the language file (.po file) via E-Mail with your name and this translated sentence: "This plugin is available in %YOUR_LANGUAGE_NAME%." So I can add it to the plugin. Of course you get a backlink to your website!
You can find the *Translation.pot* file in the *language/* folder in the plugin directory.
* Copy it.
* Rename it (to your language code).
* Translate everything.
* Send it via E-Mail to <Mail [@t] [DennisHoppe](http://DennisHoppe.de/) [dot] de>.
* Thats it. Thank you! =)
= Frequently Asked Questions =
I am still collecting frequently asked questions. ;)
== Installation ==
Installation as usual.
1. Unzip and Upload all files to a sub directory in "/wp-content/plugins/".
1. Activate the plugin through the "Plugins" menu in WordPress.
1. Go to edit a page.
1. There is a new box with title "Associated Posts". Try it out! ;)
== Screenshots ==
1. Screenshot of the post selection box
2. Editor with [associated_posts] shortcode
3. Edit Mode of a static page
4. Associated Posts Widget
5. The options page
== Changelog ==
= 1.0.12 =
* Made the plugin work in a symlinked folder
= 1.0.11 =
* Fixed JS "changed" trigger for metabox elements
= 1.0.10 =
* Added new template: Title, Author, Date, Content
= 1.0.9 =
* Added Post Type support for media items (post status: inherit)
= 1.0.8 =
* Updated default templates to valid HTML5/CSS3
* Cleaned up the hook & filter definitions
= 1.0.7 =
* Cleaned up some code parts to avoid PHP Warnings
* Added the "associated_posts_association_data" filter
= 1.0.6 =
* Added Spanish translation by David Sánchez.
= 1.0.5 =
* Added Danish translation by [Thomas Jensen](http://artikelforlaget.dk/)
= 1.0.4 =
* Added Dutch translation by Hans van Halteren
= 1.0.3 =
* Sourced html trim code to a separate function
= 1.0.2 =
* Improved template output html
= 1.0.1 =
* Added Windows Support
= 1.0 =
* Everything works fine.