Getting lots of errors with sitemap on google webmasters
the XML sitemaps plugin should be pulling your URL structure that you’ve set in the permalinks setting. Are you using a plugin or other method to remove the /category-name/ from the URL?
the XML sitemaps plugin should be pulling your URL structure that you’ve set in the permalinks setting. Are you using a plugin or other method to remove the /category-name/ from the URL?
Can you not just use Posts thats was they’re designed for. You don’t really categorise pages you structure them so they have parents and so on.
The problem is that your call to query_posts is overwriting the original query for the page. You have to get the original query, then modify any params from there. global $query_string; // start with the original query $myquery = wp_parse_args($query_string); // make any changes to the query here $myquery[‘posts_per_page’] = 9; query_posts($myquery);
function ribbon_list_cats( $parent_cat_slug, $echo = true ) { $parent_category = get_category_by_slug( $parent_cat_slug ); if ( $parent_category->count > 0 ) { $output=”<ul>”; $output .= wp_list_categories(‘title_li=&child_of=”.$parent_category->term_id.”&hide_empty=0&show_option_none=&echo=0’); $output .= ‘</ul>’; } // Debug: uncomment the following line // echo ‘<pre>’; var_dump( $output ); echo ‘</pre>’; if ( $echo === false ) return $output; return print $output; } // … Read more
This may help… http://www.kimwoodbridge.com/how-to-exclude-a-category-from-the-sidebar-list-in-wordpress/
Category pages or archives? If you’re a little more specific you will probably get multiple ideas, but in general, if you’ve got a loop you can use one of the two following functions: <?php the_excerpt(); ?> will show the custom or default excerpt for the post <?php the_content(‘Read More »’); ?> will show the full … Read more
You can bulk edit posts in the admin. I have never tried more than 500 or so but you can display 999 per page. To have more than the default 20 click screen options. Click posts–>filter by Category A Click Edit—> select all posts ( clicking top square next to “title”)–>Apply Click Category B and … Read more
That’s damn simple, see here: http://codex.wordpress.org/Function_Reference/get_categories . The sample downhere should work: $kids = get_categories(array(‘child_of’=>get_query_var(‘cat’)));
Try this: <div id=”category-list”> <ul class=”topnav”> <?php if (is_single()){ global $post; $pid = $post->ID; $post_categories = wp_get_post_categories( $post->ID ); $cats = array(); foreach($post_categories as $c){ $cat = get_category( $c ); $cats[] = $cat->ID; } $active_cat_count = true; $cat_count = 0; } $kategorien = get_categories(array( ‘child_of’ => 0, ‘exclude_tree’ => 15, ‘exclude’ => 16, ‘orderby’ => … Read more
http://codex.wordpress.org/Function_Reference/get_categories example: <?php foreach(get_categories(‘parent=0&orderby=id’) as $cat) { echo $cat->term_id.’ ‘.$cat->name.'<br/>’; } ?>