Metaboxes inside Tab
Metaboxes inside Tab
Metaboxes inside Tab
want to show CMB2 metabox on woocommerce product data tab
You would have to perform the query for each respective tab. If you are using WP_Query then you can perform the query and then use $found_posts to return the total number of posts matching that query. For instance, $query_tab_1 = new WP_Query($args); //Where $args is some arguments for your query $tab_1_count = $query_tab_1->found_posts; The $query_tab_1 … Read more
I have tackled this by putting TinyMCE on the first tab, and making it a static tab, all others are still ajax, would still like it to be ajax, if anyone has any solutions. <div id=”tabs”> <ul id=”wpsca_ul”> <li><a href=”#wpsca_addedit” title=”add page”><?php echo __(‘Add Page’,’wpsca_lang’);?></a></li> <li><a href=”https://wordpress.stackexchange.com/questions/106799/<?php echo get_option(“siteurl’ ).’/?wpsca=wpscalist’;?>” title=”manage addedit”><?php echo __(‘Manage Pages’,’wpsca_lang’);?></a></li> … Read more
user2587741 posted an answer to their question inside the question: $tabs_divs=””; function tabs_group($atts, $content = null ) { global $tabs_divs; $tabs_divs=””; $output=”<div id=”tab-side-container”><ul”; $output.=’>’.do_shortcode($content).'</ul>’; $output.= ‘<div class=”panel-container”>’.$tabs_divs.'</div>’; return $output; } function tab($atts, $content = null) { global $tabs_divs; extract(shortcode_atts(array( ‘id’ => ”, ‘title’ => ”, ), $atts)); if(empty($id)) $id = ‘side-tab’.rand(100,999); $output=” <li> <a href=”#”.$id.'”>’.$title.'</a> … Read more
I modified the code you shared a little. You can try this: http://pastebin.com/sAshJ348 Change the classes where necessary. Thanks
This sounds awful from an SEO perspective but you could do this: Note The reason ( I believe ) you’d have to do this in a query is because of the fact WordPress doesn’t by default have a “Page Archive” so you wouldn’t be able to do this with changing some .htaccess and “easy-peasy” it’s … Read more
I believe your question is about creating a “favicon”. This is a small image that is served up by your site and appears on each browser tab you may have opened. The WordPress Codex lists a convenient step-by-step on creating a favicon. http://codex.wordpress.org/Creating_a_Favicon Creating a Favicon A favicon can be created using any graphics/image editing … Read more
A couple of things before I get into the code: 1) It would probably be a cleaner solution to solve this in the theme via extended functionality (PHP modifications) as you gain more experience with WordPress. 2) If you are able to use numbers (1,2,3) instead of words (one,two,three) you can clean up the javascript … Read more
You don’t see anything because you’re assigning the content to $out but then you don’t do anything with that value. Shortcodes have to return their content or you won’t see any output. $out = ob_get_clean(); return $out; or just return ob_get_clean();