Append custom parameter to taxonomy/term URI

You can try this: function my_car_rewrite_rules( $rules ) { $newrules = array(); // add a rule for this kind of url: // http://myhost.com/cars/ferrari/used/123 // => http://myhost.com/index.php?post_type=cars&ferrari=used&p=123 $newrules[‘^cars/([^/]+)/([^/]+)/([^/]+)$’] = ‘index.php?post_type=cars&$matches[1]=$matches[2]&p=$matches[3]’; return $newrules + $rules; } add_filter(‘rewrite_rules_array’,’my_car_rewrite_rules’); and remember to “save the permalinks” when testing. I added /cars/ so this rewrite will not overwrite your other pages. … Read more

Function in functions.php by url

You can check for the presence of a specific query variable, so http://www.example.com?my_listener=test. You check for this on the init hook and if it isn’t there you just quit early and WP goes about it’s business. If it is there, you can then do something, just don’t forget to exit at the end or the … Read more

Passing multiple variables through url (php)

I’m assuming these are the post details the you’re trying to pass through the URL. Not sure if that is the most effective way to go about doing this. I do the same type of thing, but pass the postID through the URL and when I get to the destination page, use the postID to … Read more

Broken image URL

It worked for me. http://www.sixteeneighteen.co.uk/wp-content/uploads/2013/04/remove01.jpg i dont see any problem with the link.

Change the default video URL in a post to shortcode format

To render the shortcode output with a clickable link while it still looks like a shortcode, you have to replace the built-in shortcode: add_shortcode( ‘video’, ‘wpse_96840_literal_video’ ); function wpse_96840_literal_video( $atts ) { $url = $atts[‘url’]; return ‘<code>’ . sprintf( ”, $url ) . ‘</code>’; } Result

Update permalinks after domain change

Option A: Here’s a Quick Way to Search and Replace Your WordPress Database Option B: Export your database using phpmyadmin and open in a text editor such as (Notepad++), and use search/replace to find old domain and replace with new domain. MAKE SURE YOU BACKUP YOUR DATABASE BEFORE TAKING ANY ACTION

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