Title: Relations Post Types
Author: Amaury Balmer
Published: <strong>जून 29, 2010</strong>
Last modified: जून 17, 2013

---

प्लगइन शोधा

हे प्लगइन **WordPress च्या शेवटच्या 3 महत्त्वाच्या प्रमुख पुनर्वितरणांच्या साथी 
चाचणी झालेले नाही**. हे येथे वापरल्यास सामर्थ्य देणार नाही किंवा त्या आधारित असु
शकते आणि WordPress च्या अधिक अद्ययावत आवृत्तींसह वापरताना संगतता समस्यांची शक्यता
आहे.

![](https://s.w.org/plugins/geopattern-icon/relation-post-types.svg)

# Relations Post Types

 [Amaury Balmer](https://profiles.wordpress.org/momo360modena/) कडून

[डाउनलोड करा](https://downloads.wordpress.org/plugin/relation-post-types.1.3.1.zip)

 * [तपशील](https://mr.wordpress.org/plugins/relation-post-types/#description)
 * [पुनरावलोकने](https://mr.wordpress.org/plugins/relation-post-types/#reviews)
 *  [इंस्टॉलेशन](https://mr.wordpress.org/plugins/relation-post-types/#installation)
 * [डेव्हलोपमेंट](https://mr.wordpress.org/plugins/relation-post-types/#developers)

 [समर्थन](https://wordpress.org/support/plugin/relation-post-types/)

## वर्णन

This plugin allow to build relation between 2 custom types (posts, page, custom),
very useful for manage related content on CMS type website.

A few example use cases:

 * manually lists of related posts
 * post series
 * rented houses connected to agency
 * etc.

Relationships are created from a settings page from the administration console.

This plugin can not do relationships with users, you should test this excellent 
plugin made by scribu
 https://wordpress.org/extend/plugins/posts-to-posts/

## स्क्रीनशॉट

[⌊Metabox in Post Types for creating a relation⌉⌊Metabox in Post Types for creating
a relation⌉[

Metabox in Post Types for creating a relation

[⌊Option page to set relations between two content types⌉⌊Option page to set relations
between two content types⌉[

Option page to set relations between two content types

## स्थापना

 1. Download, unzip and upload to your WordPress plugins directory
 2. Activate the plugin within you WordPress Administration Backend
 3. Go to Settings > Relations and enable relation between post type.

#### Display relations in its theme

Example, display 5 related pages in your single.php template :

    ```
    <?php
    $related_pages_ids = rpt_get_object_relation($id_post, 'page');
    if ( count($related_pages_ids) >= 1 ) {
        $related_pages = query_posts( array(
            'post_type' => 'page',
            'post_status' => 'publish',
            'posts_per_page' => 5
            'post__in' => $related_pages_ids,
            'orderby' => 'post_date',
            'order' => 'DESC',
        ) );

        echo 'Related pages' . "\n";
        echo '<ul>' . "\n";
        foreach ( $related_pages as $post ) {
            echo '<li><a href="'.get_permalink($post).'">'.get_the_title($post).'</a></li>' . "\n";
        }
        echo '</ul>' . "\n";
    }
    ?>
    ```

## समीक्षा

ह्या प्लगइनसाठी कोणतेही समीक्षण नाही.

## योगदानकर्ते आणि विकसक

“Relations Post Types” हे मुक्त स्रोत सॉफ्टवेअर आहे. पुढील लोक या प्लगइनच्या निर्मितीत
योगदान केले आहे.

योगदानकर्ते

 *   [ Amaury Balmer ](https://profiles.wordpress.org/momo360modena/)
 *   [ Nicolas Juen ](https://profiles.wordpress.org/rahe/)

[भाषांतर करा “Relations Post Types” तुमच्या भाषेत.](https://translate.wordpress.org/projects/wp-plugins/relation-post-types)

### विकासातील आग्रह?

[कोड ब्राउझ करा](https://plugins.trac.wordpress.org/browser/relation-post-types/),
[SVN संग्रहालय](https://plugins.svn.wordpress.org/relation-post-types/) तपासा, किंवा
[विकास लॉग](https://plugins.trac.wordpress.org/log/relation-post-types/) च्या [RSS](https://plugins.trac.wordpress.org/log/relation-post-types/?limit=100&mode=stop_on_copy&format=rss)
द्वारे सदस्यता घ्या.

## बदलांची यादी

 * Version 1.3.1 :
    - Change settings for quantity, allow to set quantity for each post type
    - Add DIE for direct access
    - Add UNINSTALL method, remove only option. (not yet DB)
    - Move translation to INIT hook
 * Version 1.3 :
    - Compatibility with WP 3.5
    - Refactory code: use static methods, use views, new conding standards
    - Add setting for set quantity items
    - Improve performance for rpt_get_objects_most_used()
 * Version 1.2.4 :
    - Compatibility with WP 3.4
 * Version 1.2.3 :
    - No released version
 * Version 1.2.2 :
    - Fix a potential error with PHP Opcode Cache
    - Remove most recent tab, performance bad
 * Version 1.2.1 :
    - Add query var with prefix “rel-” for each CPT allow filtering on URL
 * Version 1.2 :
    - Stable enough for remove beta version
    - Add some template functions for an easier usage
    - Fix a very rare bug when a post type have relation with the same post type
      and when this relation is empty, that delete others relations of this post
      id. (thanks to bniess for reporting bug)
 * Version 1.1-beta2 :
    - Fix possible bug with others plugin’s beapi that use import
 * Version 1.1-beta1 :
    - Add tab for searching
    - Add tab to select most used elements
    - Add function to get the most associated elements from a post_type
    - Add import/export config tool
 * Version 1.0.13 :
    - Fix a warning on admin write page
 * Version 1.0.12 :
    - Fix a bug with CSS not existing. (bug copy/paste)
    - Add a argument for get single relation
 * Version 1.0.11 :
    - Fix name plugin
    - Possible fix for widget, add reset and use “post__in” instead “include”
 * Version 1.0.10 :
    - Fix bug with data lost and quick edit
 * Version 1.0.9 :
    - Fix possible bug with folder name
    - Fix bug with functions API and switch_to_blog()
 * Version 1.0.8 :
    - Fix potential warning during saving.
    - Fix bug that not allow to uncheck all relations
 * Version 1.0.7 :
    - Fix several bugS during saving relations, get relations.
 * Version 1.0.6 :
    - Check compatibility with WP 3.0.1
    - Fix constant construction. (try dynamic method)
 * Version 1.0.5 :
    - Fix renaming class
 * Version 1.0.4 :
    - Fix generation of metabox on admin. Fix for correspond to description and 
      remove stupid return…
 * Version 1.0.3 :
    - Fix notices
    - Allow relations between objects of the same post type
 * Version 1.0.2 :
    - Optimize some PHP codes
    - Add POT language + French
 * Version 1.0.1 :
    - Finalize widget !
    - Add nonce for improve security
 * Version 1.0.0 :
    - First version stable

## मेटा

 *  आवृत्ती **1.3.1**
 *  शेवटचा अद्यतन **13 वर्षे पूर्वी**
 *  सक्रिय स्थापना **200+**
 *  वर्डप्रेस आवृत्ती ** 3.0 किंवा मोठा **
 *  परीक्षित केले आहे **3.5.2**
 *  भाषा
 * [English (US)](https://wordpress.org/plugins/relation-post-types/)
 * टॅग्ज:
 * [cms](https://mr.wordpress.org/plugins/tags/cms/)[custom](https://mr.wordpress.org/plugins/tags/custom/)
   [post type](https://mr.wordpress.org/plugins/tags/post-type/)[post types](https://mr.wordpress.org/plugins/tags/post-types/)
   [relation](https://mr.wordpress.org/plugins/tags/relation/)
 *  [प्रगत दृश्य](https://mr.wordpress.org/plugins/relation-post-types/advanced/)

## मूल्यांकन

 5 पैकी ५ तारे.

 *  [  1 5-तारांकित पुनरावलोकन     ](https://wordpress.org/support/plugin/relation-post-types/reviews/?filter=5)
 *  [  0 4-तारांकित परीक्षणे     ](https://wordpress.org/support/plugin/relation-post-types/reviews/?filter=4)
 *  [  0 3-तारांकित परीक्षणे     ](https://wordpress.org/support/plugin/relation-post-types/reviews/?filter=3)
 *  [  0 2-तारांकित परीक्षणे     ](https://wordpress.org/support/plugin/relation-post-types/reviews/?filter=2)
 *  [  0 1-तारांकित परीक्षणे     ](https://wordpress.org/support/plugin/relation-post-types/reviews/?filter=1)

[आपला अभिप्राय](https://wordpress.org/support/plugin/relation-post-types/reviews/#new-post)

[सर्व पुनरावलोकने पहा](https://wordpress.org/support/plugin/relation-post-types/reviews/)

## योगदानकर्ते

 *   [ Amaury Balmer ](https://profiles.wordpress.org/momo360modena/)
 *   [ Nicolas Juen ](https://profiles.wordpress.org/rahe/)

## समर्थन

काहीतरी सांगायचं आहे का? मदतीची आवश्यकता आहे का?

 [समर्थन फोरम पहा](https://wordpress.org/support/plugin/relation-post-types/)

## देणगी

आपण हे प्लगइन पुरविण्यात समर्थन करू इच्छिता का?

 [ ह्या प्लगइनला देणगी द्या ](http://www.beapi.fr/donate/)