Sub-sub folders of WordPress Multisite subdirectory

In my opinion, you need a ‘Multi Network’, a many Multi-Sites Network. I build them here and there for different languages for one country, like domain.example/ domain.example/1-country/ domain.example/1-country/language-1/ domain.example/1-country/language-2/ domain.example/1-country/language-3/ domain.example/2-country/ domain.example/2-country/language-1/ domain.example/2-country/language-2/ The core of WordPress doesn’t support them and you need an enhancement. Ready to use is only possible with the help of … Read more

Multisite – One Site with multiple URLs

Short answer is – this is possible and easily achievable by using JJJ’s plugin https://wordpress.org/plugins/wp-multi-network/. Long answer is – WordPress allows for such structures to be created, but does require some hacking in order to make it right if you decide to do it manually. The original database structure of a multisite website is prepared … Read more

wp-mail attachment is not sent for no reason?

I changed the code to this and it worked ! Don’t know why I should do this and this is very odd but whatever. function send_mail_to_admin($orderId , $attachment_img){ $attachment_img = str_replace(“https://seabou.com/wp-content” , “” , $attachment_img); $attachment_img = array( WP_CONTENT_DIR . $attachment_img ); $headers = array(‘Content-Type: text/html; charset=UTF-8′,’From: انجمن آبزیان <[email protected]>’); $body = “<html><body> <b style=”font-size:14px;direction:rtl;text-align:center;”>یک … Read more

PHP in CSS file?

You can use wp_add_inline_style(). Let’s assume you enqueue your css like so add_action( ‘wp_enqueue_scripts’, ‘add_my_style’ ); function add_my_style() { wp_enqueue_script( ‘my_style’, get_template_directory_uri() . ‘/mystyle.css’ ); } Then you can change the function like so: function add_my_style() { wp_enqueue_script( ‘my_style’, get_template_directory_uri() . ‘/mystyle.css’ ); $style = “#mainnav li:after { content: url(‘{theme_url}/images/nav-divider.png’); }”; $style .= “#another-example { … Read more

Clean installation missing its /wp-content folder

I kept on searching, and finally found something that fixed this issue. For those who are using CentOs 7 in combination with Plesk 12: The issue is with SELinux. When it’s used in Enforcing mode (which is the default), wp-content does not show itself via FTP. Switching it to Permissive mode or disabling SELinux altogether … Read more

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