gregskuf
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Popular Posts] About Custom PostsI’ve done this but it is not working. :/
Thanks for your reply!
Forum: Plugins
In reply to: [WP Popular Posts] About Custom PostsDo you mind sharing with me, how did you manage to show the custom post types?
Thanks, G
Forum: Plugins
In reply to: [Custom Post Type UI] Custom taxonomy category name is not shown in gridsThe basic visual composer grid builder has an option to call the category meta, but as this is not working I have tried the custom approach.
As written in the plugin know-how’s there is a way to call the custom meta and create a shortcode.
Here is the code I am using:add_filter( 'vc_grid_item_shortcodes', 'my_module_add_grid_shortcodes' ); function my_module_add_grid_shortcodes( $shortcodes ) { $shortcodes['vc_say_hello'] = array( 'name' => __( 'Say Hello', 'my-text-domain' ), 'base' => 'vc_say_hello', 'category' => __( 'Content', 'my-text-domain' ), 'description' => __( 'Just outputs Hello World', 'my-text-domain' ), 'post_type' => Vc_Grid_Item_Editor::postType(), ); return $shortcodes; } add_shortcode( 'vc_say_hello', 'vc_say_hello_render' ); function vc_say_hello_render() { $terms = wp_get_post_terms( $post->ID, 'journal_categories' ); $term = array_shift( $terms ); return $term->slug; }Nevertheless this is just a way around which is still not working (I hope the code above is correctly written).
I think the main problem might be in priorities as I am reading on the other forums. The VC is getting included before taxonomies or something, but I am not technical enough to fix this.
Thanks, G
Forum: Plugins
In reply to: [Custom Post Type UI] Custom taxonomy category name is not shown in gridswill do, can you provide me your email address so I can send you the debug, please.
thanks, G