-
Author
Tagged: K-Elements, vc bakery, member grids
-
May 23, 2015 at 20:44 #59928solokcoParticipant
I would like to extend the functionality of K-Elements member grid to show only PAID MEMBERS of the page.
I have tried changing plugin/k_elements/shortcodes/templates/buddypress/kleo_bp_members_grid.php on my CHILD THEME and it works fine.
I would like to create another VC Shortcode so I can keep the original functionality and the new I’m creating. Is there an easy way to do this or requires to go deep in the code?
Thanks
May 28, 2015 at 18:25 #60411sharmstrModeratorYou’ll need to define a new shortcode in your childs functions.php file, put your custom template file in /kleo-child/vc_templates/buddypress/, then use VC’s shortcode mapper to add it to vc.
Example assumes you’ve named your template custom_bp_members_grid.php
COPY CODEadd_shortcode( "custom_bp_members_grid", "custom_bp_members_grid_func"); function custom_bp_members_grid_func($atts, $content = null) { global $kleo_config; $shortcode = array( 'name' => 'Custom Members Grid', 'category' => 'buddypress', 'example' => '[kleo_bp_members_grid type="newest" number="12" size="150" class=""]' ); $output = ''; if(!isset($shortcode)) { return; } include get_stylesheet_directory() .'/vc_templates/buddypress/custom_bp_members_grid.php'; return $output; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
May 28, 2015 at 18:32 #60414sharmstrModeratorhttp://vc.wpbakery.com/video-academy/add-shortcodes-visual-composer-wordpress/
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.