{"id":23565,"date":"2013-05-26T14:55:11","date_gmt":"2013-05-26T14:55:11","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/premium-posts\/"},"modified":"2013-05-30T14:16:17","modified_gmt":"2013-05-30T14:16:17","slug":"premium-posts","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/premium-posts\/","author":7270592,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.3","stable_tag":"trunk","tested":"3.5.2","requires":"3.1","requires_php":"","requires_plugins":"","header_name":"Premium Posts","header_author":"Shaun Scovil","header_description":"","assets_banners_color":"c6c6c6","last_updated":"2013-05-30 14:16:17","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/sscovil\/premium-posts","header_author_uri":"http:\/\/shaunscovil.com","rating":5,"author_block_rating":0,"active_installs":10,"downloads":1685,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"718481","resolution":"1544x500","location":"assets"},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"718481","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"718481","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"718481","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"718481","resolution":"3","location":"assets"},"screenshot-4.png":{"filename":"screenshot-4.png","revision":"719630","resolution":"4","location":"assets"}},"screenshots":{"1":"A <code>Premium Post<\/code> checkbox is added to the publish metabox in the post editor screen.","2":"A <code>Premium Post<\/code> column is added to the post admin table.","3":"A <code>Premium Post<\/code> checkbox is added to the Quick Edit menu on the post admin table.","4":"Plugin options are added to <code>WP-Admin &gt; Settings &gt; Reading<\/code>."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[14163,86,166,512,90],"plugin_category":[57],"plugin_contributors":[83145],"plugin_business_model":[],"class_list":["post-23565","plugin","type-plugin","status-publish","hentry","plugin_tags-mark","plugin_tags-post","plugin_tags-posts","plugin_tags-premium","plugin_tags-tag","plugin_category-taxonomy","plugin_contributors-sscovil","plugin_committers-sscovil"],"banners":{"banner":"https:\/\/ps.w.org\/premium-posts\/assets\/banner-772x250.png?rev=718481","banner_2x":"https:\/\/ps.w.org\/premium-posts\/assets\/banner-1544x500.png?rev=718481","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/premium-posts_c6c6c6.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/premium-posts\/assets\/screenshot-1.png?rev=718481","caption":"A <code>Premium Post<\/code> checkbox is added to the publish metabox in the post editor screen."},{"src":"https:\/\/ps.w.org\/premium-posts\/assets\/screenshot-2.png?rev=718481","caption":"A <code>Premium Post<\/code> column is added to the post admin table."},{"src":"https:\/\/ps.w.org\/premium-posts\/assets\/screenshot-3.png?rev=718481","caption":"A <code>Premium Post<\/code> checkbox is added to the Quick Edit menu on the post admin table."},{"src":"https:\/\/ps.w.org\/premium-posts\/assets\/screenshot-4.png?rev=719630","caption":"Plugin options are added to <code>WP-Admin &gt; Settings &gt; Reading<\/code>."}],"raw_content":"<!--section=description-->\n<p>Want to add a special message or ad code to your most popular blog posts? This plugin enables you to do just that!<\/p>\n\n<ol>\n<li>Install and activate the plugin via <code>WP-Admin &gt; Plugins<\/code>.<\/li>\n<li>Mark your top posts as \"Premium\" using a checkbox in the Post Editor.<\/li>\n<li>Go to <code>WP-Admin &gt; Settings &gt; Reading<\/code> and edit your premium post message.<\/li>\n<li>Choose to place your message above or below the post content, or place it manually using the <code>&lt;?php premium_posts(); ?&gt;<\/code> template tag inside <a href=\"http:\/\/codex.wordpress.org\/The_Loop\" title=\"WordPress Codex: The Loop\">The Loop<\/a>.<\/li>\n<\/ol>\n\n<p>This plugin also adds the conditional tag <code>is_premium_post()<\/code> for use in your theme template files. You can use it to test if a specific post is marked as premium by passing the post ID (or post object) as a parameter.<\/p>\n\n<p>Example:<\/p>\n\n<pre><code>&lt;?php if ( is_premium_post( $post_id ) ) { ?&gt;\n\n    &lt;?php echo get_the_title( $post_id ); ?&gt; is a premium post!\n\n&lt;?php } ?&gt;\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Install and activate the plugin via <code>WP-Admin &gt; Plugins<\/code>.<\/li>\n<li>Mark your top posts as \"Premium\" using a checkbox in the Post Editor.<\/li>\n<li>Go to <code>WP-Admin &gt; Settings &gt; Reading<\/code> and edit your premium post message.<\/li>\n<li>Choose to place your message above or below the post content, or place it manually using the <code>&lt;?php premium_posts(); ?&gt;<\/code> template tag inside <a href=\"http:\/\/codex.wordpress.org\/The_Loop\" title=\"WordPress Codex: The Loop\">The Loop<\/a>.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>2.3<\/h4>\n\n<ul>\n<li>Security update: Added data sanitization to plugin settings displayed in form fields on settings page.<\/li>\n<\/ul>\n\n<h4>2.2.2<\/h4>\n\n<ul>\n<li>Bug fix: resolved undefined index error in <code>WP-Admin &gt; Posts &gt; Add New<\/code>.<\/li>\n<\/ul>\n\n<h4>2.2.1<\/h4>\n\n<ul>\n<li>Bug fix: save_post() method was throwing an error in the QuickPress dashboard widget.<\/li>\n<li>Renamed premium_post_message() method to the more semantic get_post_message().<\/li>\n<li>Clarified some inline documentation.<\/li>\n<\/ul>\n\n<h4>2.2<\/h4>\n\n<ul>\n<li>Security update: Added settings field sanitization callback.<\/li>\n<\/ul>\n\n<h4>2.1<\/h4>\n\n<ul>\n<li>Added plugin settings to <code>WP-Admin &gt; Settings &gt; Reading<\/code> for easy management of premium &amp; standard post messages.<\/li>\n<li>Added <code>premium_posts()<\/code> template tag for manual placement of premium\/standard post message.<\/li>\n<\/ul>\n\n<h4>2.0.1<\/h4>\n\n<ul>\n<li>Added term filter for Standard posts in Posts admin table.<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>Updated version uses a hidden taxonomy to mark posts as premium.<\/li>\n<li>Added a column to the <code>Posts<\/code> admin table.<\/li>\n<li>Added a checkbox to the <code>Quick Edit<\/code> menu.<\/li>\n<li>Added term filter for premium posts in <code>Posts<\/code> admin table.<\/li>\n<li>Cleaned up code by moving functions into a singleton class.<\/li>\n<li>Added a .pot file for localization.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release stored post IDs of premium posts as an array in the options table.<\/li>\n<\/ul>","raw_excerpt":"Mark posts as &quot;Premium&quot; and display a custom message or ad code.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/23565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=23565"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/sscovil"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=23565"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=23565"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=23565"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=23565"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=23565"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=23565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}