Create subdomains for tags and categories
This plugin will help you: http://wordpress.org/extend/plugins/wordpress-subdomains/ Also, wp_redirect could be helpful: https://stackoverflow.com/questions/4706672/wordpress-tags-redirect-to-subdomains
This plugin will help you: http://wordpress.org/extend/plugins/wordpress-subdomains/ Also, wp_redirect could be helpful: https://stackoverflow.com/questions/4706672/wordpress-tags-redirect-to-subdomains
That happens because you are overwriting the query with you $args, If you want to modify it and not overwrite it then use this format: //get the $query_string in to your $args array global $query_string; parse_str( $query_string, $args ); //modify whatever you want $args[‘post_type’] = ‘post’; $args[‘posts_per_page’] = 5; $args[‘orderby’] = ‘comment_count’; query_posts($args);
Question was answered on another site.. thank you! BTW, the code that accomplished what I needed was: $categories = get_categories(‘child_of=31’); foreach ($categories as $category) { //Display the sub category information using $category values like $category->cat_name echo ‘<h2>’.$category->name.'</h2>’; echo ‘<ul>’; foreach (get_posts(‘cat=”.$category->term_id) as $post) { setup_postdata( $post ); echo “<li><a href=”‘.get_permalink($post->ID).'”>’.get_the_title().'</a></li>’; } echo ‘</ul>’; }
Tags and Categories use the same system, So that is not possible. It will not hurt SEO in any way to use php-2, it is just visually displeasing.
Short answer: No. When you’re working with SEO, there are three things to take into account: Site content Site meta descriptions Site findability (it’s a word, I swear!) Site Content Search engines will parse your site’s content looking for content and keywords. Create good, useful content and it will be fetched, parsed, and recorded appropriately. … Read more
Use term_is_ancestor_of(). That is the function cat_is_ancestor_of() is calling: term_is_ancestor_of( $parent, $child, ‘taxonomy_name’ );
Found and combined some code that seems to work for categories. So leaving the code if somebody else runs into the same problem. For reference. – Filter all queries with a specific taxonomy – Adding Custom User Profile data based upon Categories The below allows a user to choose categories on this profile, after which … Read more
This is awesome material for a plugin. This answer will also include how to associate the user with the category (it’s hard to give you a solution without knowing that). Before we get started, the real meat is in step four (way at the bottom). Skip to that if you don’t need a way to … Read more
Try wp_terms_checklist() / wp_category_checklist. It will output a list of checkboxes named post_category. You might need to include the source file too, because it’s defined within administration files. Or use a custom walker: class MyCategoryWalker extends Walker_Category{ public function start_el(&$output, $term, $depth, $args){ $args = wp_parse_args(array( ‘name’ => ‘my_category_input’, ‘checked’ => array(), ), $args); extract($args); … Read more
The permastruct /%category%/%postname%/ will include the categories and subcategories in the URL from top to first assigned child. So, if you want the URL be site.com/source/books/moby-dick/*postname*, you have to assign the post only to “Moby Dick”. Assigning the post only to “Moby Dick” category will still show the post under “source” and “books” category archives … Read more