Plugin for Theme developers, Who wants to build portfolio themes rapidly.
Author: | Rakib Hossain (profile at wordpress.org) |
WordPress version required: | 4.5 |
WordPress version tested: | 4.9.4 |
Plugin version: | 1.0.0 |
Added to WordPress repository: | 06-03-2018 |
Last updated: | 06-03-2018
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | http://www.rakibhossain.cf/wp-violet |
Total downloads: | 560 |
Click to start download
|
Screenshots
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.
FAQ
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() );
}
?>
ChangeLog