WordPress on Nginx – Missing admin/toolbar

If you’re using Varnish and you’re not seeing the admin bar it’s because you probably have a rule in /etc/varnish/default.vcl that looks like this: sub vcl_recv { if (!(req.url ~ “wp-(login|admin)”)) { unset req.http.cookie; } } That’s going to keep the admin bar from showing up because you’re dropping cookie stuff from all pages except … Read more

WordPress Multisite – is this possible?

It sounds like you have an ideal situation for a multisite. You do not even need to have the sites running the same theme. Your theme however would be exactly the same for each site so you couldn’t modify a theme for an individual one (they are at the base of the multisite not on … Read more

How to set up wp multisite?

If you have your network sites allowed to install in subdomain like abc.hgd.com then you need to setup the Wild card DNS setting. I think that could be creating the problem for you and redirecting you to the 404 error page. Can you please let me know thw steps you followed to setup your multisite … Read more

Different page content for default pages on WordPress Multisite

Make your $default_pages array being associated array, where a key is page title and a value is page content. Then modify your foreach loop to fetch $key => $value pairs and use it for the wp_insert_post function. Like this: function default_pages( $blog_id ) { $default_pages = array( ‘Contact’ => “This is your ‘Contact’ page. Enter … Read more

Default sub-pages on WordPress Multisite

wp_insert_post() returns a post ID for the fresh post. You can use that ID to set a parent post. Example $about_id = wp_insert_post( array ( ‘post_title’ => ‘About’, ‘post_status’ => ‘publish’, ‘post_type’ => ‘page’, ) ); wp_insert_post( array ( ‘post_title’ => ‘Information’, ‘post_status’ => ‘publish’, ‘post_type’ => ‘page’, ‘post_parent’ => $about_id, ) ); In your … Read more

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