Create Dynamic SEO Friendly URL for Virtual Page

One approach could be to create a rewrite rule that will catch the 3 variables and provide them as parameters that can be passed on to your job template. Assuming your template slug is “job”: function jobquery_rewrite_rule() { add_rewrite_rule( ‘^job/([^/]*)/([^/]*)/([^/]*)/?’, ‘index.php?pagename=job&state=$matches[1]&city=$matches[2]&job=$matches[3]’, ‘top’ ); } add_action( ‘init’, ‘jobquery_rewrite_rule’ ); After inserting this action into your theme, … Read more

Add meta noindex to post if it has a specific taxonomy

You can use the wp_robots filter to manipulate the robots meta tag as needed. And as you’re checking against a taxonomy term you can use the has_term() helper conditional to make your code look a litte nicer. (A post can be passed to has_term() as the 3rd parameter, but if it is not passed then … Read more

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