Title: Premium Posts
Author: Shaun Scovil
Published: <strong>26. maj, 2013</strong>
Last modified: 30. maj, 2013

---

Søg plugins

![](https://ps.w.org/premium-posts/assets/banner-772x250.png?rev=718481)

Dette plugin **er ikke blevet testet med de seneste 3 større udgivelser af WordPress**.
Det vedligeholdes eller understøttes muligvis ikke længere og kan have kompatibilitetsproblemer,
når det bruges med nyere versioner af WordPress.

![](https://s.w.org/plugins/geopattern-icon/premium-posts_c6c6c6.svg)

# Premium Posts

 Af [Shaun Scovil](https://profiles.wordpress.org/sscovil/)

[Download](https://downloads.wordpress.org/plugin/premium-posts.zip)

 * [Detaljer](https://da.wordpress.org/plugins/premium-posts/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/premium-posts/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/premium-posts/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/premium-posts/#developers)

 [Support](https://wordpress.org/support/plugin/premium-posts/)

## Beskrivelse

Want to add a special message or ad code to your most popular blog posts? This plugin
enables you to do just that!

 1. Install and activate the plugin via `WP-Admin > Plugins`.
 2. Mark your top posts as “Premium” using a checkbox in the Post Editor.
 3. Go to `WP-Admin > Settings > Reading` and edit your premium post message.
 4. Choose to place your message above or below the post content, or place it manually
    using the `<?php premium_posts(); ?>` template tag inside [The Loop](https://codex.wordpress.org/The_Loop).

This plugin also adds the conditional tag `is_premium_post()` 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.

Example:

    ```
    <?php if ( is_premium_post( $post_id ) ) { ?>

        <?php echo get_the_title( $post_id ); ?> is a premium post!

    <?php } ?>
    ```

## Skærmbilleder

 * [[
 * A `Premium Post` checkbox is added to the publish metabox in the post editor 
   screen.
 * [[
 * A `Premium Post` column is added to the post admin table.
 * [[
 * A `Premium Post` checkbox is added to the Quick Edit menu on the post admin table.
 * [[
 * Plugin options are added to `WP-Admin > Settings > Reading`.

## Installation

 1. Install and activate the plugin via `WP-Admin > Plugins`.
 2. Mark your top posts as “Premium” using a checkbox in the Post Editor.
 3. Go to `WP-Admin > Settings > Reading` and edit your premium post message.
 4. Choose to place your message above or below the post content, or place it manually
    using the `<?php premium_posts(); ?>` template tag inside [The Loop](https://codex.wordpress.org/The_Loop).

## Anmeldelser

Der er ingen anmeldelser for denne widget.

## Bidragsydere & udviklere

“Premium Posts” er open source-software. Følgende personer har bidraget til dette
plugin.

Bidragsydere

 *   [ Shaun Scovil ](https://profiles.wordpress.org/sscovil/)

[Oversæt “Premium Posts” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/premium-posts)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/premium-posts/), tjek
[SVN repository](https://plugins.svn.wordpress.org/premium-posts/), eller abonner
på [udviklerloggen](https://plugins.trac.wordpress.org/log/premium-posts/) via [RSS](https://plugins.trac.wordpress.org/log/premium-posts/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 2.3

 * Security update: Added data sanitization to plugin settings displayed in form
   fields on settings page.

#### 2.2.2

 * Bug fix: resolved undefined index error in `WP-Admin > Posts > Add New`.

#### 2.2.1

 * Bug fix: save_post() method was throwing an error in the QuickPress dashboard
   widget.
 * Renamed premium_post_message() method to the more semantic get_post_message().
 * Clarified some inline documentation.

#### 2.2

 * Security update: Added settings field sanitization callback.

#### 2.1

 * Added plugin settings to `WP-Admin > Settings > Reading` for easy management 
   of premium & standard post messages.
 * Added `premium_posts()` template tag for manual placement of premium/standard
   post message.

#### 2.0.1

 * Added term filter for Standard posts in Posts admin table.

#### 2.0

 * Updated version uses a hidden taxonomy to mark posts as premium.
 * Added a column to the `Posts` admin table.
 * Added a checkbox to the `Quick Edit` menu.
 * Added term filter for premium posts in `Posts` admin table.
 * Cleaned up code by moving functions into a singleton class.
 * Added a .pot file for localization.

#### 1.0

 * Initial release stored post IDs of premium posts as an array in the options table.

## Meta

 *  Version **2.3**
 *  Senest opdateret **13 år siden**
 *  Aktive installationer **10+**
 *  WordPress-version ** 3.1 eller højere **
 *  Testet op til **3.5.2**
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/premium-posts/)
 * Tags
 * [mark](https://da.wordpress.org/plugins/tags/mark/)[post](https://da.wordpress.org/plugins/tags/post/)
   [posts](https://da.wordpress.org/plugins/tags/posts/)[premium](https://da.wordpress.org/plugins/tags/premium/)
   [tag](https://da.wordpress.org/plugins/tags/tag/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/premium-posts/advanced/)

## Bedømmelser

 5 ud af 5 stjerner.

 *  [  1 5-stjernet anmeldelse     ](https://wordpress.org/support/plugin/premium-posts/reviews/?filter=5)
 *  [  0 4-stjernet anmeldelser     ](https://wordpress.org/support/plugin/premium-posts/reviews/?filter=4)
 *  [  0 3-stjernet anmeldelser     ](https://wordpress.org/support/plugin/premium-posts/reviews/?filter=3)
 *  [  0 2-stjernet anmeldelser     ](https://wordpress.org/support/plugin/premium-posts/reviews/?filter=2)
 *  [  0 1-stjernet anmeldelser     ](https://wordpress.org/support/plugin/premium-posts/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/premium-posts/reviews/#new-post)

[Se alle anmeldelser.](https://wordpress.org/support/plugin/premium-posts/reviews/)

## Bidragsydere

 *   [ Shaun Scovil ](https://profiles.wordpress.org/sscovil/)

## Support

Har du noget at sige? Har du brug for hjælp?

 [Vis supportforum](https://wordpress.org/support/plugin/premium-posts/)