Loop info in jquery Tabs – loop into a variable?

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

“switchEditors is not defined” with wp_editor() in jQuery UI tabs

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

Creating tabs shortcode

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

Logo on the tab

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

Using javascript on my site to create nested tabs

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