Tag Info

New answers tagged

0

STing, thanks for your attention. I will explain better. Both the website and the blog belong to the same project. In the configurantion website/blog, the website is the Online Business Directory Im developing and the blog its just about that. I planned this strategy, to start blogging about the niche of the website (Online Business Directory) while Im ...


1

Just small nuggets of information that may help in simple setups (most notably the ones with no use plugins using ob_start): 1) You don't need the to put dns-prefetch calls as the first elements. What you need is to put them as soon as possible before any other element calling external resources. 2) Is actually possible to use negative numbers as priority ...


0

wp-login was not found error clearly means that you have lost control on WordPress admin panel. Even if this situation looks terrible but in real, it's not. Situation A: The URL might be wrong In most cases, the WordPress installed in its own directory. When a user tries to change the default URL path of WordPress site from www.example.com/wp to ...


1

In many cases, you may use the following filter to disable local ssl verification. This is useful for self-signed certificates errors. add_filter('https_local_ssl_verify', '__return_false'); The current version v4.3.0 determins if a request is "local" with the following, in wp-includes/class-http.php // Determine if this request is to OUR install of ...


0

There is really no answer given the limited facts in the question. Are you requiring that users login to see pages/data? If not I don't see why you would care to share user tables. There will be some things that multisite will handle better but there will be some things (handling certain plugins) that multisite will make you pull your hair out. If I had ...


1

I would agree that current_user_can('Administrator') should return true for the user. However, current_user_can is primarily intended to check for capabilities, which is generally a more robust check to be making. I'd suggest something like this (untested): if ( current_user_can( 'activate_plugins' ) && ! current_user_can( 'update_core' ) ) { //... ...


-2

A Multi-Domain (UCC) SSL certificate will allow your users to choose their own domain to display. It may be important for you to know that many Certificate Authorities have a limit to the number of certificates that can be issued for a single IP address so if you are running a large network of over 100 people, another solution may be necessary. In such ...


-2

WordPress uses different templates for pages on your site. If you have a page.php template in your theme, that will be used to display your pages. If you have a single.php, that will be used to display your single posts. index.php or home.php would display your home page, or page.php if you have a certain page selected as the home page through the reading ...


0

If you look at the source code of the 'Add New Site' page, you can see that WordPress does not provide a hook for this purpose. Of course, it would be possible to add a hook yourself, but it is generally bad practice to edit the WordPress core. However, once submitted and all information is present, the page calls the function wpmu_create_blog(). In this ...


0

I use MAINWP https://mainwp.com/. I set up a domain to host a singular wordpress site with the dashboard for MainWP then installed the child plugin to all the sites I want to manage. Import the sites to the main site and manage them all from there. Has been excellent and its FREE..


0

OK perfect. There was a syntax error in this line: <?php if( 1 == $blog_id ); ?> replaced: <?php if( 1 == $blog_id ): ?> close post.


0

I have write : <?php $blog_id = get_current_blog_id(); ?> <?php if( 1 == $blog_id ); ?> <div id=""><script src=""></script><script src="" ></script></div> <?php elseif( 2 == $blog_id ): ?> <div id=""><script src=""></script><script src="" ></script></div> ...


2

I'm surprised get_current_blog_id() didn't work, since that's probably the best way to approach it. Always try doing a var_dump( $current_blog ) to make sure you're testing for what you need. Edit (19 Aug 2015): Also, triple check that you know which header you're expecting to see and that you're making the change you want in the right header file. ...


0

@tammy it doesn't. If you have a dozen different network setups then there is no safe and secure way to log in to all of them at once. If they are a dozen sites on 1 WP install then when you log in you should be logged in across a single network. – Alex Older Aug 5 at 10:35


0

My question is if I don't want to go through all the trouble of changing the site back to a regular WordPress site, can I just treat and use the site as a regular WordPress site? I think you might be overestimating the trouble. If it's a multisite with just one main site then simply killing multisite bits from config will de-multisite it. Or at least ...


0

Applying the htaccess for version 3.5+ seems to have worked RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ...


0

Figured it out using str_replace. First the location of the background image is stored in a string: <?php $backimg = get_background_image(); ?> Then perform a string and replace where the .jpg is removed at the end of the $backimg and is stored as $bgraw <?php $bgraw = str_replace('.jpg','',$backimg);?> It output as: ...


0

As of Wordpress 4.2.4, a bone stock multi-site installation with MU Domain Mapping 0.5.5 Development Plugin and Multisite User Managment Plugin 1.1, logging in through the primary domain will log a user in to all sites the user is assigned to (all sites as super admin user). However, the user has visit a child site to establish the cookie and auth, which ...


0

Add .htaccess file to root folder in arkansaspicker.com. .htaccess RewriteEngine On RewriteRule ^(blog/.*)$ http://news.arkansaspickem.com/$1 [R=301,L,NC] Then you have two options to get contents of /blog to show on news.arkansaspickem.com. Move your WP to subdomain folder. Akeeba Backup will help you with that. Change your subdomain's vhost ...


0

The solution, adding this to my wp-config.php: define( 'PLUGINDIR', 'wp-app-content/plugins' ); https://wordpress.org/support/topic/domain-mapping-breaks-some-plugin-scripts-and-css


1

There are a few steps you need to take to add menus, the wordpress way. Register the menu in functions.php using register_nav_menus() Codex Link: https://codex.wordpress.org/Function_Reference/register_nav_menus Example: register_nav_menus( array( 'my_custom_menu' => 'My Custom menu', 'my_other_menu' => 'My Other Menu', ) ); Now you ...


1

Photon is the part of jetpack that uploads your images to wordpress.com so they can be served from their CDN. You can turn it off here: yourdomain.com/wp-admin/admin.php?page=jetpack_modules&module_tag=Photos%20and%20Videos


0

You can use this filter: wpmu_blogs_columns More info: https://developer.wordpress.org/reference/hooks/wpmu_blogs_columns/



Top 50 recent answers are included