{"id":11631,"date":"2011-01-03T07:43:06","date_gmt":"2011-01-03T07:43:06","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/pronamic-page-teasers\/"},"modified":"2015-02-12T20:07:13","modified_gmt":"2015-02-12T20:07:13","slug":"pronamic-page-teasers","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/pronamic-page-teasers\/","author":6956533,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2.2","stable_tag":"1.2.2","tested":"3.4.2","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Pronamic Page Teasers","header_author":"Pronamic","header_description":"","assets_banners_color":"","last_updated":"2015-02-12 20:07:13","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/pronamic.eu\/donate\/?for=wp-plugin-pronamic-page-teasers&source=wp-plugin-readme-txt","header_plugin_uri":"http:\/\/www.pronamic.eu\/plugins\/pronamic-page-teasers\/","header_author_uri":"http:\/\/pronamic.eu\/","rating":3,"author_block_rating":0,"active_installs":50,"downloads":4783,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":"1","2":0,"3":0,"4":0,"5":"1"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1068810","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1068810","resolution":"256x256","location":"assets"},"icon.svg":{"filename":"icon.svg","revision":"1068810","resolution":"","location":"assets"}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.2","1.2.1","1.2.2"],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1573780","resolution":"2","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1573780","resolution":"1","location":"plugin"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1573780","resolution":"3","location":"plugin"}},"screenshots":{"1":"<p>Pronamic Page Teasers meta box<\/p>","2":"<p>Pronamic Page Teasers on the frontend of the Twentyten WordPress theme<\/p>","3":"<p>Default template for the Pronamic Page Teasers<\/p>"}},"plugin_section":[],"plugin_tags":[170,243,51404,25850,51405],"plugin_category":[],"plugin_contributors":[79315,79316],"plugin_business_model":[],"class_list":["post-11631","plugin","type-plugin","status-closed","hentry","plugin_tags-page","plugin_tags-pages","plugin_tags-pages-on-page","plugin_tags-pronamic","plugin_tags-teasers-on-page","plugin_contributors-pronamic","plugin_contributors-remcotolsma","plugin_committers-pronamic","plugin_committers-remcotolsma"],"banners":[],"icons":{"svg":"https:\/\/ps.w.org\/pronamic-page-teasers\/assets\/icon.svg?rev=1068810","icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/pronamic-page-teasers.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/pronamic-page-teasers\/trunk\/screenshot-1.png?rev=1573780","caption":"<p>Pronamic Page Teasers meta box<\/p>"},{"src":"https:\/\/ps.w.org\/pronamic-page-teasers\/trunk\/screenshot-2.png?rev=1573780","caption":"<p>Pronamic Page Teasers on the frontend of the Twentyten WordPress theme<\/p>"},{"src":"https:\/\/ps.w.org\/pronamic-page-teasers\/trunk\/screenshot-3.png?rev=1573780","caption":"<p>Default template for the Pronamic Page Teasers<\/p>"}],"raw_content":"<!--section=description-->\n<blockquote>\n  <p>This plugin is deprecated so Pronamic wil no longer support and maintain this plugin.<\/p>\n  \n  <p>If you want to help maintain the plugin, fork it on <a href=\"https:\/\/github.com\/pronamic\/wp-pronamic-page-teasers\">GitHub<\/a> and open pull requests.<\/p>\n<\/blockquote>\n\n<p>With this plugin a user can easily bind pages to a page. This way a developer can easily show \nteasers of pages on a page. Editors can easily define the page teasers on the page editor screen.<\/p>\n\n<h3>Links<\/h3>\n\n<ul>\n<li><a href=\"http:\/\/pronamic.eu\/\">Pronamic<\/a><\/li>\n<li><a href=\"http:\/\/remcotolsma.nl\/\">Remco Tolsma<\/a><\/li>\n<li><a href=\"http:\/\/daringfireball.net\/projects\/markdown\/syntax\" title=\"Markdown is what the parser uses to process much of the readme file\">Markdown's Syntax Documentation<\/a><\/li>\n<\/ul>\n\n<h3>Pronamic plugins<\/h3>\n\n<ul>\n<li><a href=\"http:\/\/wordpress.org\/extend\/plugins\/pronamic-google-maps\/\">Pronamic Google Maps<\/a><\/li>\n<li><a href=\"http:\/\/wordpress.org\/extend\/plugins\/gravityforms-nl\/\">Gravity Forms (nl)<\/a><\/li>\n<li><a href=\"http:\/\/wordpress.org\/extend\/plugins\/pronamic-page-widget\/\">Pronamic Page Widget<\/a><\/li>\n<li><a href=\"http:\/\/wordpress.org\/extend\/plugins\/pronamic-page-teasers\/\">Pronamic Page Teasers<\/a><\/li>\n<li><a href=\"http:\/\/wordpress.org\/extend\/plugins\/maildit\/\">Maildit<\/a><\/li>\n<li><a href=\"http:\/\/wordpress.org\/extend\/plugins\/pronamic-framework\/\">Pronamic Framework<\/a><\/li>\n<li><a href=\"http:\/\/wordpress.org\/extend\/plugins\/pronamic-ideal\/\">Pronamic iDEAL<\/a><\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>Extract the zip file and just drop the contents in the wp-content\/plugins\/ directory of your \nWordPress installation and then activate the Plugin from Plugins page.<\/p>\n\n<p>The teasers will automatically be added to <a href=\"http:\/\/codex.wordpress.org\/Function_Reference\/the_content\">the_content()<\/a> \nusing <a href=\"http:\/\/codex.wordpress.org\/Plugin_API\/Filter_Reference\/the_content\">the_content() filter<\/a>. If you want \nto change the markup of the teasers, you should create a \"pronamic-page-teasers.php\" file  within your theme directory.<\/p>\n\n<p><strong>pronamic-page-teasers.php<\/strong><\/p>\n\n<pre><code>&lt;?php \n\n$teasers = pronamic_get_page_teasers();\n\n$h = is_front_page() ? 3 : 2;\n\nif($teasers): ?&gt;\n\n&lt;ul&gt;\n\n    &lt;?php foreach($teasers as $post): setup_postdata($post); ?&gt;\n\n    &lt;li&gt;\n        &lt;article id=\"teaser-&lt;?php the_ID(); ?&gt;\" &lt;?php post_class('teaser'); ?&gt;&gt;\n            &lt;h&lt;?php echo $h; ?&gt; class=\"entry-title\"&gt;\n                &lt;a href=\"&lt;?php the_permalink(); ?&gt;\" title=\"&lt;?php printf(esc_attr__('Permalink to %s'), the_title_attribute('echo=0')); ?&gt;\" rel=\"bookmark\"&gt;\n                    &lt;?php the_title(); ?&gt;\n                &lt;\/a&gt;\n            &lt;\/h&lt;?php echo $h; ?&gt;&gt;\n\n            &lt;?php the_excerpt(); ?&gt;\n        &lt;\/article&gt;\n    &lt;\/li&gt;\n\n    &lt;?php endforeach; ?&gt;\n\n&lt;\/ul&gt;\n\n&lt;?php endif; ?&gt;\n<\/code><\/pre>\n\n<h4>Functions<\/h4>\n\n<p><strong>is_pronamic_page_teasers()<\/strong><\/p>\n\n<p>Returns true if the loop is rendering Pronamic page teasers.<\/p>\n\n<p><strong>pronamic_page_teasers_the_content()<\/strong><\/p>\n\n<p>Extends the_content() with the Pronamic page teasers. Can be disabled by removing the filter:<\/p>\n\n<pre><code>remove_filter('the_content', 'pronamic_page_teasers_the_content');\n<\/code><\/pre>\n\n<p><strong>pronamic_get_page_teasers()<\/strong><\/p>\n\n<p>This functions can be used to get an array of all the teaser pages\nthat are defined for the current global page. This function must \nbe within <a href=\"http:\/\/codex.wordpress.org\/The_Loop\">The Loop<\/a>. This\nfunction is based on the <a href=\"http:\/\/codex.wordpress.org\/Function_Reference\/get_pages\">get_pages()<\/a> \nfunction.<\/p>\n\n<p><strong>pronamic_page_teasers()<\/strong><\/p>\n\n<p>This functions renders the Pronamic page teasers. It is normally used within \nthe pronamic_page_teasers_the_content() function. If you don't want to \ndisplay the teasers right after the_content(), you can disable the pronamic_page_teasers_the_content()\nfilter. You can then manually add the function pronamic_page_teasers() to one of your template files.<\/p>\n\n<!--section=changelog-->\n<h4>1.2.2<\/h4>\n\n<ul>\n<li>Fix - Fatal error: Undefined class constant 'FILTER_THE_CONTENT_PRIORITY'.<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Added an deprecated notice.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Solved issue with the order of the page teasers, since WordPress 3.2+ the sort_column is restricted<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Fixed problem not applying shortcodes within the_content() afters teasers are added (reported by \n<a href=\"http:\/\/jelkeboonstra.nl\/\">Jelke Boonstra<\/a>). This was a strange unexplainable problem, solved by \ngiving <a href=\"http:\/\/codex.wordpress.org\/Plugin_API\/Filter_Reference\/the_content\">the_content() filter<\/a>\na default priority of 20.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Deprecated \u2014 This plugin makes it easy to bind pages (teasers) to a page.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/11631","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=11631"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/remcotolsma"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=11631"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=11631"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=11631"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=11631"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=11631"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=11631"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}