Use Regular Expression to get tag from permalink url during wp_rewrite in generate_rewrite_rules
Replace (.*) with (.*?). The question mark makes it ‘lazy’. Also, replace ([0-9]{4}) with (\d+). See http://www.regular-expressions.info/reference.html
Replace (.*) with (.*?). The question mark makes it ‘lazy’. Also, replace ([0-9]{4}) with (\d+). See http://www.regular-expressions.info/reference.html
Here is example of simple shortcode that will take ID as argument and echo permalink for it: function link_from_id($atts) { if( isset($atts[‘id’]) ) return get_permalink( (int)$atts[‘id’] ); } add_shortcode(‘link’, ‘link_from_id’); Usage: [link id=1] PS by the way non-pretty permalinks will keep working just fine if you enable pretty mode later and, if I remember right, … Read more
You can create a separate category template for just that one category. If your category’s slug is reviews you can make a copy of your category template and save it as category-reviews.php. See the Category Templates page on Codex for more info about the template hierarchy. This still leaves you with the /category/ part in … Read more
I think it depends what your goal is and what the breadcrumbs represent. I would say that for most wordpress sites nofollow on breadcrumbs is probably a nonissue. Let’s start with nofollow. Nofollow says you don’t want a search engine to pass on page rank to this link. So if you had comment links and … Read more
Yes you need 301 redirection and you will carry on your SEO juice to the new URLs.
I will try to answer the question in detailed but keeping it as short as possible considering you have achieved the basics. Suppose our custom post type one is to be connected to taxonomy one. Let’s call them ‘console'(custom post type) and ‘brands'(taxonomy). You want to achieve: http://example.com/console/brands/sony/ Steps: Register the taxonomy first and attach … Read more
my first thought is that it is a permalinks issue. if it is, set your permalinks to default and the links should work correctly. also, be sure to search the database for (and replace) any other instances of the old live site’s URL, particularly in wp_posts table. it’s easy to forget to update guid and … Read more
Some folks asked the same question you did here. This one specifically worth reading, if you haven’t already. It has ottopress explanation for harmful permalinks. If you really want to force this, you could write your own permalink (http://domain.com/category/subcategory/post…), then either use htaccess rewrite rule or WP_Rewrite to take them to the link wordpress generated. … Read more
You can just use: /2011/08/?taxonomy=term I’m not sure how to create a rewrite rule though to make it “pretty”
You could use a rewrite rule in your .htaccess file to remove number from the link. You’ll need something along the lines of: RewriteRule ^number/(.+)$ $1 [R=301,L]