How to add dot(“.”) in post slug

WordPress runs slugs through its sanitize_title_with_dashes() filter function which replaces dots with dashes. Unfortunately the function doesn’t give you any control over that or any ability to change what characters are stripped or replaced. What we can do however is remove that filter and add our own version of it with a couple of modifications: … Read more

Custom rewrite rule based on other custom post type title

So after 2 days of searching I found a solution. Permalink manager lite + this function and all works fine. //Rewrite rule function pm_extra_permastructure_tags($default_uri, $native_slug, $post, $slug, $native_uri) { // Do not affect native URIs if($native_uri == true || empty($post->post_type) || $post->post_type !== ‘mieszkanie’) { return $default_uri; } $inwestycja = get_field(‘inwestycja’, $post->ID); if( !empty($inwestycja) ) … Read more

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