Multiple Tags Issue in Permalinks

There is a column in the term_relationships table for term_order which seems to imply that one could set the order of terms. That said, it looks like it doesn’t actually work — the core doesn’t use it in any way. A bit of poking around in wp_set_object_terms, the function that get’s used to assign terms … Read more

Long permalinks get split with multidots and get broken

Turn off all plugins, switch to TwentyTen or – even better – this theme. Then add another post with an ridiculously long title Lopado­temacho­selacho­galeo­kranio­leipsano­drim­hypo­trimmato­silphio­parao­melito­katakechy­meno­kichl­epi­kossypho­phatto­perister­alektryon­opte­kephallio­kigklo­peleio­lagoio­siraio­baphe­tragano­pterygon Source: Wikipedia Then see if it works now. If it doesn’t: Re-install WP from the Admin > Dashboard/Updates page. If it does work, activate one plugin and retry, then the next … Read more

placing the media uploads in a subdirectory

Add the following to your theme’s functions.php file, making sure you replace the example CDN URL with your own: function my_cdn_upload_url() { return ‘http://mk124.yourcdn.com/yoursite/wp-content/uploads’; } add_filter( ‘pre_option_upload_url_path’, ‘my_cdn_upload_url’ );

Customizing a permalink

try this: <h2 class=”featured-title”><a href=”http://siteurl.com/category/<?php echo strtolower(str_replace(” “,””,$arr[$i][“title”])); ?>”><?php echo esc_html($arr[$i][“title”]); ?></a></h2>

What is the simplest way to create a redirect

When you register your custom post type, set the has_archive argument to the slug you want for the archive page, in this case drinks: $args = array( ‘rewrite’ => array( ‘slug’ => ‘drink’ ), ‘has_archive’ => ‘drinks’, );

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)