Title: Violet Custom Post Meta
Author: Rakib
Published: <strong>6. март 2018.</strong>
Last modified: 6. март 2018.

---

Претражи додатке

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

Овај додатак **није испробан са последња 3 главна издања Вордпреса**.Можда се више
не одржава или подржава и можда има грешке са усклађеношћу са новијим издањима Вордреса.

![](https://ps.w.org/wp-violet/assets/icon-128x128.jpg?rev=1834744)

# Violet Custom Post Meta

 [Rakib](https://profiles.wordpress.org/serakib/)

[Преузимање](https://downloads.wordpress.org/plugin/wp-violet.zip)

 * [Детаљи](https://sr.wordpress.org/plugins/wp-violet/#description)
 * [Прегледи](https://sr.wordpress.org/plugins/wp-violet/#reviews)
 *  [Постављање](https://sr.wordpress.org/plugins/wp-violet/#installation)
 * [Изградња](https://sr.wordpress.org/plugins/wp-violet/#developers)

 [Подршка](https://wordpress.org/support/plugin/wp-violet/)

## Опис

To avoid plugin territory warning for CPT and Meta Boxes, This is a great choice
for you. Violet Custom Post Meta adds necessary CPT, Meta, Texonomy to develop awesome
portfolio theme.

Post Types:

 * services
 * skill
 * portfolio
 * testimonial
 * team
 * partner

Note that this plugin function can be modify as your choice by filter Hooks.

Hook Lists :

    ```
    vcpm_{post_type}_params //to modify post type args.
    vcpm_portfolio_category_params //to modify portfolio texonomy.
    vcpm_meta_fields_{post_type} //provides ability to add, remove, modify meta fields.
    vcpm_meta_box //Provides ability to create, delete and modify meta box.
    vcpm_meta_fields_control //Fields styte, presentation can be modify.
    ```

## Снимци екрана

 * [[
 * Supports input type text, radio, checkbox, range.
 * [[
 * Portfolio Category and Image picker.
 * [[
 * Field type checkbox, radio.
 * [[
 * Field type select option.
 * [[
 * General meta box register args.

## Постављање

Just install and active the plugin. Custom meta you can use in you theme as by wordpress
rules.

Meta fields list can be checked by plugins `/includes/class-vcpm-meta.php`

## ЧПП

  Installation Instructions

Just install and active the plugin. Custom meta you can use in you theme as by wordpress
rules.

Meta fields list can be checked by plugins `/includes/class-vcpm-meta.php`

  Can I use both Portfolio image and link?

No, When you select portfolio image, Portfolio link would be hidden.

  How to modify meta box render style

Use vcpm_meta_fields_control hook. It accept max 3 arguments ($html,$fields,$post).

    ```
    <?php
        function example_callback( $html, $fields, $post ) {
            foreach ($fields as $field) {
                $value = get_post_meta($post->ID, $field['id'], true);
                // Actions you need to do
            }
            return $html;
        }
        add_filter( 'vcpm_meta_fields_control', 'example_callback' 1, 3 );
    ?>
    ```

  I need samply query code

Hear is sample query code for portfolio post types and their meta.

    ```
    <?php
    //Portfolio post and meta query
    $args = array( 'post_type' => 'portfolio');
    $loop = new WP_Query( $args );
    while ( $loop->have_posts() ) : $loop->the_post();
        $post_id = get_the_ID();
        $terms = get_the_terms( $post_id, 'portfolio_category' );
        $post_custom = get_post_custom($post_id);
        $portfolio_title = get_the_title();
        $portfolio_sub = $post_custom["sub_name"][0];
        $portfolio_img = $post_custom["portfolio_img"][0];
        $portfolio_link = esc_url($post_custom["portfolio_link"][0]);
        $portfolio_thumb_url = '';
            $portfolio_thumb_url = wp_get_attachment_url( get_post_thumbnail_id() );
        }
    ?>
    ```

## Прегледи

Нема рецензија за овај додатак.

## Сарадници и градитељи

„Violet Custom Post Meta“ је софтвер отвореног кода. Следећи људи су допринели овом
додатку.

Сарадници

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

[Преведите „Violet Custom Post Meta“ на свој језик.](https://translate.wordpress.org/projects/wp-plugins/wp-violet)

### Заинтересовани сте за градњу?

[Прегледајте код](https://plugins.trac.wordpress.org/browser/wp-violet/), проверите
[SVN складиште](https://plugins.svn.wordpress.org/wp-violet/) или се пријавите на
[белешку градње](https://plugins.trac.wordpress.org/log/wp-violet/) преко [RSS-а](https://plugins.trac.wordpress.org/log/wp-violet/?limit=100&mode=stop_on_copy&format=rss).

## Белешка о изменама

#### 1.0

Initial release.

## Мета

 *  Version **1.0.0**
 *  Last updated **8 година раније**
 *  Active installations **Мање од 10**
 *  WordPress version ** 4.5 или новије **
 *  Tested up to **4.9.29**
 *  Language
 * [English (US)](https://wordpress.org/plugins/wp-violet/)
 * Tags
 * [custom fields](https://sr.wordpress.org/plugins/tags/custom-fields/)[custom post types](https://sr.wordpress.org/plugins/tags/custom-post-types/)
   [Custom Taxonomies](https://sr.wordpress.org/plugins/tags/custom-taxonomies/)
 *  [Напредни преглед](https://sr.wordpress.org/plugins/wp-violet/advanced/)

## Оцене

No reviews have been submitted yet.

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

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

## Сарадници

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

## Подршка

Имате нешто да кажете? Потребна вам је помоћ?

 [Види форум подршке](https://wordpress.org/support/plugin/wp-violet/)

## Донирај

Желите ли да подржите напредак овог додатка?

 [ Донирај овом додатку ](http://www.rakibhossain.cf)