Multisite adjust uploads like (/upload/%alphanumeric_id%/%file_type%/%blog_ID%)

Ok this is my solution for now – but how do I add the generated alphanumeric_id as add_post_meta($post_id, ‘alphanumeric_id’, $randomString); to the related attachment? /*===================================================================================*/ /* function change the upload for multi-lang /*==================================================================================*/ function bZive_handle_upload_prefilter( $file ) { add_filter(‘upload_dir’, ‘bZive_custom_upload_dir’); return $file; } function bZive_handle_upload( $fileinfo ){ remove_filter(‘upload_dir’, ‘bZive_custom_upload_dir’); return $fileinfo; } /** * Force … Read more

How to make multi site with single Database?

First off please note that although you plan to use different themes and plugins, your core content is identical, so search engines can and will figure out that all of these sites contain the same content. So if you proceed, just know that you won’t be bringing in much if any organic traffic. Perhaps there … Read more

dynamic site link for future migration in echo do_shortcode()

You can save your website’s URL into a variable and pass it to the shortcode: $url = site_url(); echo do_shortcode(“[timeline src=”https://wordpress.stackexchange.com/questions/284281/$url/rest-of-the-url/”]”); You should also be able to use your shortcode in the following way: echo do_shortcode(“[timeline src=””.site_url().”/rest-of-the-url/”]”);

Multisite configuration for multiple domains

WordPress supports Domain Mapping. WordPress multisite subsites may be mapped to a non-network top-level domain. This means a site created as subsite1.networkdomain.com, can be mapped to show as domain.com. This also works for subdirectory sites, so networkdomain.com/subsite1 can also appear at domain.com. Before setting up domain mapping, make sure your network has been correctly set … Read more

Is it possible to disable html code error auto fixing feature by wordpress 4.9.1?

I’ve found the solution for this referencing this site https://checknotes.wordpress.com/2016/02/06/unfiltered-html-in-wordpress/ WordPress Multisite only allows unfiltered_html capabilities for super admin, which explains why administrators and editors HTML keeps disappearing. I decided to use ‘Unfiltered MU’ WordPress plugin to allow unfiltered_html for admin and editor role

Is this possible? A multisite with “www.example.com/en/blog/” and “www.example.com/cn/blog/” (two directories deep)

Yes, your requirements are possible. As addition, you can also use different domains for each language, like http://www.example.cn/blog/ http://www.example.ru/blog/ http://www.example.jp/blog/ if you need also relationsships betweent the posts of different sites, in your context languages, you can realize this via custom code or an existing plugin, like Multilingual Press.