How to use permalink query to go to specific tabs in posts

I’ve found out the solutions, though not perfect, but it gets the job done. Following is the code add_action(‘init’, ‘my_init’); function project_ace2_init() { global $wp; $wp->add_query_var(‘tab’); // Needed so get_query_var(‘tab’) will work add_rewrite_rule( //'(.+?)/([^/]+)(/([^/]+))?/?$’, //Original : ‘(.+?)/([^/]+)(/[0-9]+)?/?$’ ‘((?:(?!page|tag|category|author|search|feed|type))[^/]+)/([^/]+)(/([^/]+))?/?$’ ‘index.php?category_name=$matches[1]&name=$matches[2]&tab=$matches[4]’, ‘top’ ); } The rule is taken from the default WordPress rules for permalink as /%category%/%postname%/, … Read more

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