Non latin post slug truncate

No, it is not entirely possible. WordPress is using Percent encoding to sanitise the slug. You could undo this, and it would deliver nonlatin characters, but the browser would immediately swap these out for percent encoded characters when you tried to visit the page. Wether your database will store these characters, and the table encoding … Read more

List child pages by slug not ID?

Why don”t you use get_page_by_title() to get the page object, and then pass its ID as the child_of parameter? If you would rather use the actual slug, then get_page_by_path( $slug ) should do the trick. So: if ( $page = get_page_by_path( ‘your-page-slug’ ) ){ wp_list_pages( ‘orderby=name&depth=1&order=DESC&show_count=0&child_of=” .$page->ID . “&title_li=’ ); }

Rewrite post type slug only for child theme

Make the slug translatable when you register the custom post type: register_post_type( ‘post_type_name’, array ( ‘rewrite’ => array ( ‘slug’ => _x( ‘post_type_name’, ‘URL slug’, ‘your_text_domain’ ) ) ) ); Then create a small plugin for the site where you want to change the slug: add_filter( ‘gettext_with_context’, ‘change_my_slug’, 10, 4 ); function change_my_slug( $translation, $text, … Read more

How do I link to a blog not set as the homepage?

The permalinks by default are output relative to the site’s blog posts index (aka ‘page-for-posts’, aka posts page). You’re using a custom page template for the static page Section/News. That static page is unrelated to the site blog posts index. That’s why the permalinks don’t reference that page. If you want your permalinks to reference … Read more

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