Title: CPTRP
Author: dvddemattia
Published: <strong>10. mai 2016</strong>
Last modified: 3. mai 2016

---

Søk gjennom innstikk

![](https://ps.w.org/cptrp/assets/banner-772x250.jpg?rev=1413927)

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/cptrp_f2dfe7.svg)

# CPTRP

 Av [dvddemattia](https://profiles.wordpress.org/dvddemattia/)

[Last ned](https://downloads.wordpress.org/plugin/cptrp.1.0.0.zip)

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

 [Hjelp](https://wordpress.org/support/plugin/cptrp/)

## Skildring

Free and easy to use plugin that allow you to add a list of related posts for each
post, including Custom Post Types.

### Features And Options:

 * Add relations between posts.
 * Set number of related posts (1-20).
 * Custom title and custom template path.
 * Working with shortcode [cptrp].
 * Simple and free.
 * More features coming on updates.

## Skjermbilete

[⌊Settings - Required settings are the post types you want to use and the number
of fields you need. Optional settings are a custom title and a custom path for the
content template.⌉⌊Settings - Required settings are the post types you want to use
and the number of fields you need. Optional settings are a custom title and a custom
path for the content template.⌉[

Settings – Required settings are the post types you want to use and the number of
fields you need. Optional settings are a custom title and a custom path for the 
content template.

[⌊Related posts selection - This metabox will appear in the admin post page for 
the post types you have activated in the settings page.⌉⌊Related posts selection-
This metabox will appear in the admin post page for the post types you have activated
in the settings page.⌉[

Related posts selection – This metabox will appear in the admin post page for the
post types you have activated in the settings page.

## Installasjon

 1. Install the plugin either via the WordPress.org plugin directory, or by uploading
    the folder to your server (in the /wp-content/plugins/ directory).
 2. Activate the CPTRP plugin through the «Plugins» menu in WordPress.
 3. Go to the Settings page to set your options

## Vanlege spm.

#### For which type of posts this plugin works?

You can choose for which type of posts make it work. In the settings page, select
the type of posts to activate them.

#### What is the `Number of Fields` field in the Setting page

«Number of Fields» set the number of fields for selecting related posts that will
be displayed in the post page. This number must be included between 1 and 20. However,
if for example this value is set on `3` but you do not select the posts for which
you want to create a relation, related posts will not appear in your front end page.

#### How can I insert a custom title before the related posts list?

Go to the Settings page and set the title in the `Title` field.

#### Which template will be used to display the related posts?

By default the shortcode will get the template part `content.php`, if post is a 
standard post. If post is custom post type it will get the template part `content-{
custom-post-type}.php`. You can change this behaviour specifying a custom path with
the name of the file that should be used. For example, if you’re using CPTRP on 
a custom post type named `books` but you don’t have (or don’t want to use) a file
named `content-books.php` and so you just want to use `content.php`, then you can
specify it in the `Path` input field of the settings page. In this case, supposing
that the file content.php is in the `partials` subfolder, you can type `partials/
content`.

#### Can I have a different content template for each post type?

Yes, you can have a different content template creating a file `content-{custom-
post-type}.php`. This will be taken by default. But if you specify a content template
path, then will be used that for all the post type selected. So if you have more
than one post type selected be aware that you need to use the same template for 
all of them.

#### I set the options in the Settings page and selected the related posts but still can’t see related post in my website.

You need to insert [cptrp] shortcode where related posts should be displayed.

## Omtalar

There are no reviews for this plugin.

## Bidragsytarar og utviklarar

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

Contributors

 *   [ dvddemattia ](https://profiles.wordpress.org/dvddemattia/)

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

### Interested in development?

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

## Endringslogg

#### 1.0.0 – 06/05/2016

 * Initial Public Release

## Om

 *  Version **1.0.0**
 *  Last updated **10 år sidan**
 *  Active installations **Færre enn 10**
 *  WordPress version ** 4.0 eller nyare **
 *  Tested up to **4.5.33**
 *  Language
 * [English (US)](https://wordpress.org/plugins/cptrp/)
 * Tags
 * [custom post type](https://nn.wordpress.org/plugins/tags/custom-post-type/)[post](https://nn.wordpress.org/plugins/tags/post/)
   [related post](https://nn.wordpress.org/plugins/tags/related-post/)
 *  [Avansert vising](https://nn.wordpress.org/plugins/cptrp/advanced/)

## Vurderingar

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/cptrp/reviews/)

## Contributors

 *   [ dvddemattia ](https://profiles.wordpress.org/dvddemattia/)

## Hjelp

Har du noko å seia? Treng du hjelp?

 [Sjå hjelpeforumet](https://wordpress.org/support/plugin/cptrp/)