{"id":81231,"date":"2018-03-06T18:37:45","date_gmt":"2018-03-06T18:37:45","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/violet-plugin\/"},"modified":"2018-03-06T18:38:14","modified_gmt":"2018-03-06T18:38:14","slug":"wp-violet","status":"publish","type":"plugin","link":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-violet\/","author":15602895,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"trunk","tested":"4.9.29","requires":"4.5","requires_php":"","requires_plugins":"","header_name":"Violet Custom Post Meta","header_author":"Rakib Hossain","header_description":"This is a short description of what the plugin does. It's displayed in the WordPress admin area.","assets_banners_color":"ffffff","last_updated":"2018-03-06 18:38:14","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.rakibhossain.cf","header_plugin_uri":"http:\/\/www.rakibhossain.cf\/wp-violet","header_author_uri":"http:\/\/www.rakibhossain.cf","rating":0,"author_block_rating":0,"active_installs":0,"downloads":978,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":"1834744","resolution":"128x128","location":"assets"}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1834742","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1834745","resolution":"1","location":"assets"},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"1834746","resolution":"2","location":"assets"},"screenshot-3.jpg":{"filename":"screenshot-3.jpg","revision":"1834747","resolution":"3","location":"assets"},"screenshot-4.jpg":{"filename":"screenshot-4.jpg","revision":"1834748","resolution":"4","location":"assets"},"screenshot-5.jpg":{"filename":"screenshot-5.jpg","revision":"1834749","resolution":"5","location":"assets"}},"screenshots":{"1":"Supports input type text, radio, checkbox, range.","2":"Portfolio Category and Image picker.","3":"Field type checkbox, radio.","4":"Field type select option.","5":"General meta box register args."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2010,1487,4925],"plugin_category":[],"plugin_contributors":[153993],"plugin_business_model":[],"class_list":["post-81231","plugin","type-plugin","status-publish","hentry","plugin_tags-custom-fields","plugin_tags-custom-post-types","plugin_tags-custom-taxonomies","plugin_contributors-serakib","plugin_committers-serakib"],"banners":{"banner":"https:\/\/ps.w.org\/wp-violet\/assets\/banner-772x250.jpg?rev=1834742","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/wp-violet\/assets\/icon-128x128.jpg?rev=1834744","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-violet\/assets\/screenshot-1.jpg?rev=1834745","caption":"Supports input type text, radio, checkbox, range."},{"src":"https:\/\/ps.w.org\/wp-violet\/assets\/screenshot-2.jpg?rev=1834746","caption":"Portfolio Category and Image picker."},{"src":"https:\/\/ps.w.org\/wp-violet\/assets\/screenshot-3.jpg?rev=1834747","caption":"Field type checkbox, radio."},{"src":"https:\/\/ps.w.org\/wp-violet\/assets\/screenshot-4.jpg?rev=1834748","caption":"Field type select option."},{"src":"https:\/\/ps.w.org\/wp-violet\/assets\/screenshot-5.jpg?rev=1834749","caption":"General meta box register args."}],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>Post Types:<\/p>\n\n<ul>\n<li>services<\/li>\n<li>skill<\/li>\n<li>portfolio<\/li>\n<li>testimonial<\/li>\n<li>team<\/li>\n<li>partner<\/li>\n<\/ul>\n\n<p>Note that this plugin function can be modify as your choice by filter Hooks.<\/p>\n\n<p>Hook Lists :<\/p>\n\n<pre><code>vcpm_{post_type}_params \/\/to modify post type args.\nvcpm_portfolio_category_params \/\/to modify portfolio texonomy.\nvcpm_meta_fields_{post_type} \/\/provides ability to add, remove, modify meta fields.\nvcpm_meta_box \/\/Provides ability to create, delete and modify meta box.\nvcpm_meta_fields_control \/\/Fields styte, presentation can be modify.\n<\/code><\/pre>\n\n<!--section=installation-->\n<p>Just install and active the plugin. Custom meta you can use in you theme as by wordpress rules.<\/p>\n\n<p>Meta fields list can be checked by plugins <code>\/includes\/class-vcpm-meta.php<\/code><\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><p>Just install and active the plugin. Custom meta you can use in you theme as by wordpress rules.<\/p>\n\n<p>Meta fields list can be checked by plugins <code>\/includes\/class-vcpm-meta.php<\/code><\/p><\/dd>\n<dt>Can I use both Portfolio image and link?<\/dt>\n<dd><p>No, When you select portfolio image, Portfolio link would be hidden.<\/p><\/dd>\n<dt>How to modify meta box render style<\/dt>\n<dd><p>Use vcpm_meta_fields_control hook. It accept max 3 arguments ($html,$fields,$post).<\/p>\n\n<pre><code>&lt;?php\n    function example_callback( $html, $fields, $post ) {\n        foreach ($fields as $field) {\n            $value = get_post_meta($post-&gt;ID, $field['id'], true);\n            \/\/ Actions you need to do\n        }\n        return $html;\n    }\n    add_filter( 'vcpm_meta_fields_control', 'example_callback' 1, 3 );\n?&gt;\n<\/code><\/pre><\/dd>\n<dt>I need samply query code<\/dt>\n<dd><p>Hear is sample query code for portfolio post types and their meta.<\/p>\n\n<pre><code>&lt;?php\n\/\/Portfolio post and meta query\n$args = array( 'post_type' =&gt; 'portfolio');\n$loop = new WP_Query( $args );\nwhile ( $loop-&gt;have_posts() ) : $loop-&gt;the_post();\n    $post_id = get_the_ID();\n    $terms = get_the_terms( $post_id, 'portfolio_category' );\n    $post_custom = get_post_custom($post_id);\n    $portfolio_title = get_the_title();\n    $portfolio_sub = $post_custom[\"sub_name\"][0];\n    $portfolio_img = $post_custom[\"portfolio_img\"][0];\n    $portfolio_link = esc_url($post_custom[\"portfolio_link\"][0]);\n    $portfolio_thumb_url = '';\n        $portfolio_thumb_url = wp_get_attachment_url( get_post_thumbnail_id() );\n    }\n?&gt;\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<p>Initial release.<\/p>","raw_excerpt":"Plugin for Theme developers, Who wants to build portfolio themes rapidly.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/81231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=81231"}],"author":[{"embeddable":true,"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/serakib"}],"wp:attachment":[{"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=81231"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=81231"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=81231"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=81231"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=81231"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=81231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}