vektorlab
Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
Forum: Plugins
In reply to: order of wp_list_categoriesi resolved it! but i need this in a shortcode of functions.php. someone can help me please?
<?php // Grab the categories - top level only (depth=1) $get_cats = wp_list_categories( 'echo=0&title_li=&depth=1&sort_column=name&show_count=0&hide_empty=0&show_option_all&child_of=0&exclude_tree=1&exclude=1,33,34,35,467' ); // Split into array items $cat_array = explode('</li>',$get_cats); // Amount of categories (count of items in array) $results_total = count($cat_array); // How many categories to show per list (round up total divided by 5) $cats_per_list = ceil($results_total / 5); // Counter number for tagging onto each list $list_number = 1; // Set the category result counter to zero $result_number = 0; ?> <ul id="category_footer_post" id="cat-col-<?php echo $list_number; ?>"> <?php foreach($cat_array as $category) { $result_number++; if($result_number % $cats_per_list == 0) { $list_number++; echo $category.'</li> </ul> <ul class="category_footer_post" id="cat-col-'.$list_number.'">'; } else { echo $category.'</li>'; } } ?> </ul>Forum: Plugins
In reply to: [WP-Members Membership Plugin] Error charsetfixed!
Forum: Plugins
In reply to: [WP-Members Membership Plugin] Error charsetsorry, in emails generated by wp-members
Forum: Fixing WordPress
In reply to: exclude categories on category comboa lot of thanks!
FINAL CODE
<form action="<?php bloginfo('url'); ?>/" method="get"> <div><?php $select = wp_dropdown_categories('show_option_none=Selecciona tu Provincia&show_count=0&orderby=name&echo=0&exclude=35,34,33'); $select = preg_replace("#<select([^>]*)>#", "<select$1 onchange='return this.form.submit()'>", $select); echo $select; ?><noscript><div><input type="submit" value="View" /></div></noscript></div></form>it works!! really thanks
Hi!
Please, can you explain me how make it?
I want send “logged user email” in the message body of contact form 7
Thanks
Viewing 6 replies - 1 through 6 (of 6 total)