Title: Sticky CPT
Author: Kantari Samy
Published: <strong>23. oktober 2016</strong>
Last modified: 19. mars 2020

---

Søk gjennom innstikk

![](https://ps.w.org/sticky-cpt/assets/banner-772x250.png?rev=1520508)

Dette innstikket **er ikkje testa med dei tre siste utgåvene av WordPress**. Det
kan henda det ikkje blir vedlikehalde lenger, og kan ha problem med nyare versjonar
av WordPress.

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

# Sticky CPT

 Av [Kantari Samy](https://profiles.wordpress.org/leprincenoir/)

[Last ned](https://downloads.wordpress.org/plugin/sticky-cpt.2.0.0.zip)

 * [Detaljar](https://nn.wordpress.org/plugins/sticky-cpt/#description)
 * [Omtalar](https://nn.wordpress.org/plugins/sticky-cpt/#reviews)
 *  [Installasjon](https://nn.wordpress.org/plugins/sticky-cpt/#installation)
 * [Utvikling](https://nn.wordpress.org/plugins/sticky-cpt/#developers)

 [Hjelp](https://wordpress.org/support/plugin/sticky-cpt/)

## Skildring

The plugin allows to highlight the CPT in the same way as would the WordPress core
functionality for posts.
 You can highlight new content created for your CPT. It
is also possible to highlight the content quickly thanks to bulk actions.

Start example

    ```
    $args = array(
        'post_type'      => ['project'],
        'post_status'    => 'publish',
        'posts_per_page' => -1,
        'post__in'       => get_option( 'sticky_posts' )
    );
    $stickyProject = new WP_Query( $args );
    ```

Hook available

    ```
    add_filter( 'sticky_cpt_add_cpt' , 'add_cpt' );

    function add_cpt( $post_types ) {
        $post_types['newcpt'] = 'newcpt';
        return $post_types;
    }
    ```

## Skjermbilete

 * [[
 * Highlighted in an article
 * [[
 * list items with Sticky

## Installasjon

 1. Upload the plugin files to the `/wp-content/plugins/sticky-cpt` directory, or install
    the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the «Plugins» screen in WordPress

## Vanlege spm.

(soon)

## Omtalar

![](https://secure.gravatar.com/avatar/6f505c6be9a951929a99becb6b413dcfa583a5ca3dd0f7320766fee1481f0f82?
s=60&d=retro&r=g)

### 󠀁[Good job! (small feature request inside)](https://wordpress.org/support/topic/good-job-small-feature-request-inside/)󠁿

 [Jb Audras](https://profiles.wordpress.org/audrasjb/) 2. mars 2017 1 reply

Great job dude, i love it ! 🙂 As a little feature request for the next version,
i guess you should prepare your plugin for GlotPress native i18n. See : https://
translate.wordpress.org/projects/wp-plugins/sticky-cpt , the plugin is not well 
prepared for internationalization. The load_plugin_textdomain() function is missing,
as well as the language textdomain metadata in the plugin main file comments, and
a better use of WP translation strings 😉 E.g : instead of __( "Make this post sticky"),
you should rather use __( "Make this post sticky", "sticky-cpt" ) But very nice 
work by the way, as usual 🙂

![](https://secure.gravatar.com/avatar/876a5ffeeebdea4c20261678a87c672960635cf376c4ace0a9dc70fe88f1dde3?
s=60&d=retro&r=g)

### 󠀁[4.7.2 works (with cpt ui)](https://wordpress.org/support/topic/4-7-2-works-with-cpt-ui/)󠁿

 [Chris](https://profiles.wordpress.org/eskim0/) 27. februar 2017 1 reply

Thanks!

 [ Les alle 2 omtalar ](https://wordpress.org/support/plugin/sticky-cpt/reviews/)

## Bidragsytarar og utviklarar

“Sticky CPT” is open source software. The following people have contributed to this
plugin.

Contributors

 *   [ Kantari Samy ](https://profiles.wordpress.org/leprincenoir/)
 *   [ Whodunit ](https://profiles.wordpress.org/whodunitagency/)

[Omset “Sticky CPT” til ditt eige språk.](https://translate.wordpress.org/projects/wp-plugins/sticky-cpt)

### Interested in development?

[Les kjeldekoden](https://plugins.trac.wordpress.org/browser/sticky-cpt/), sjekk
[SVN-lageret](https://plugins.svn.wordpress.org/sticky-cpt/) eller abonner på [utviklingsloggen](https://plugins.trac.wordpress.org/log/sticky-cpt/)
med [RSS](https://plugins.trac.wordpress.org/log/sticky-cpt/?limit=100&mode=stop_on_copy&format=rss).

## Endringslogg

#### 1.0.1

 * 04 july 2017
 * Add contributor Whodunit and Check compatibility WordPress 4.8

#### 1.0.0

 * 22 oct 2016
 * Initial release \o/

## Om

 *  Version **2.0.0**
 *  Last updated **6 år sidan**
 *  Active installations **50+**
 *  WordPress version ** 3.5 eller nyare **
 *  Tested up to **5.3.21**
 *  Language
 * [English (US)](https://wordpress.org/plugins/sticky-cpt/)
 * Tags
 * [cpt](https://nn.wordpress.org/plugins/tags/cpt/)[forward](https://nn.wordpress.org/plugins/tags/forward/)
   [highlighting](https://nn.wordpress.org/plugins/tags/highlighting/)[push](https://nn.wordpress.org/plugins/tags/push/)
   [sticky](https://nn.wordpress.org/plugins/tags/sticky/)
 *  [Avansert vising](https://nn.wordpress.org/plugins/sticky-cpt/advanced/)

## Vurderingar

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/sticky-cpt/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/sticky-cpt/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/sticky-cpt/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/sticky-cpt/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/sticky-cpt/reviews/?filter=1)

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

[See all reviews](https://wordpress.org/support/plugin/sticky-cpt/reviews/)

## Contributors

 *   [ Kantari Samy ](https://profiles.wordpress.org/leprincenoir/)
 *   [ Whodunit ](https://profiles.wordpress.org/whodunitagency/)

## Hjelp

Har du noko å seia? Treng du hjelp?

 [Sjå hjelpeforumet](https://wordpress.org/support/plugin/sticky-cpt/)