Remove Trailing Slash from Category Base and Tag Base

I did a lot of digging and I came up with this code to solve the problem as well as adding “.html” to pages, categories and tags. The permalink setting takes care of posts. function hpct_page_rewrite($rules) { foreach ($rules as $key => $value) { $newrules[str_replace(‘/?’, ‘.html’, $key)] = $value; } return $newrules; } function hpct_page_link($link) … Read more

Custom permalink for specific category

I got an answer on the WordPress forums. Here is the working code for those looking to do something similar: add_filter( ‘post_type_link’, ‘change_webinar_links’, 10, 2 ); function change_webinar_links( $link, $post) { if ( $post->post_type == ‘tribe_events’ && tribe_event_in_category(‘webinar’) ) { $link = trailingslashit( home_url(‘/webinars/’ . $post->post_name ) ); } return $link; } add_action( ‘init’, ‘webinar_rewrite_rule’, … Read more

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