Questions tagged [configuration]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
10
votes
3answers
3k views

How to intercept already localized scripts

If a plugin uses some script (prominent example: jQuery UI Datepicker), but you're not happy with how the script renders the output, then there're two possibilities: 1. Unregister the script > Add ...
9
votes
2answers
5k views

Multisite Network Port Num Issues?

I am following This tutorial to Create a Network of WordPress Sites . After adding /* Multisite */ define( 'WP_ALLOW_MULTISITE', true ); to my wp-config.php file and when I start to configure ...
9
votes
1answer
7k views

How can I debug the TTFB in WP?

I'm developing a WP theme, based on _s default theme with WP 4.1.1. I keep getting a TTFB(time to first byte) of 22s, consistently both on the front and back of the site, while on localhost. Here's a ...
9
votes
2answers
431 views

Improve wordpress security by hiding non public resources

I'm new from wordpress and i want improve security of wordpress multisite by hiding non public resources, eg. wp-admin, wp-config etc. My setting seem to work, but i don't know if this setting can ...
8
votes
7answers
6k views

Individual Widgets per Page

In my (page-only, no posts) Wordpress site I have a number of static blobs in need to put in a sidebar. We could call/tream thoses 'blobs' as widgets. At least they'll have a fixed html content, like '...
8
votes
1answer
6k views

Control verbosity level of WP DEBUG?

I've been at a loss so far and so I thought I'd pose the question: Is there a way to modify the verbosity level of the WP debug.log via wp-config.php or elsewhere? Just an fyi, here is what I have in ...
6
votes
1answer
312 views

How do I transition multiple installations to a single Multisite installation?

I have a client who runs 8 different blogs, currently on 8 separate installations of WordPress. I'm trying to encourage them to move to a single MS installation instead to make it easier (mostly on ...
6
votes
2answers
908 views

WordPress Multisite with multiple domains using Nginx

I'm growing grey hair here. I've tried so many things and yet I can't get a grasp on how to set this up. Found tons of guides but no one goes through all aspects, which are: A single WP Multisite ...
5
votes
1answer
5k views

Hosting multiple Wordpress sites on single server - best practices?

I rent some webserver space (Linux, MySql, PHP, Apache) and host several Wordpress websites (for different clients, with different needs) What would be the best way to Host multiple wordpress sites on ...
5
votes
1answer
453 views

Getting trackback spam, even with trackbacks disabled

I'm having a heck of a time having trackbacks being disabled period on my self-hosted blog. I've disabled the "Allow link notifications from other blogs (pingbacks and trackbacks)" option, and have ...
4
votes
1answer
2k views

Generate Wordpress salt

I am in need of a function that automatically generates and returns salts for Wordpress wp-config.php (Don't link me to their API, I'm looking for offline solution). Does Wordpress core has this ...
4
votes
2answers
2k views

Multisite behind Varnish

I'm trying to use varnish with a wp 3.0.5 site with Network (Multisite), when I access the varnish URL, I get this message: Multisite only works without the port number in the URL. Do I need a ...
4
votes
1answer
1k views

Wordpress PHP error handling and reporting in production environment

I'm trying to find a solution on how to handle the displaying and logging of errors in a PHP (Wordpress) production environment. Is it possible to do the following (alternative suggestions welcome): ...
4
votes
1answer
18k views

Where are a theme's options stored and can I export them to be imported into freshly installed themes?

Imagine that a person has a few premium themes that they use for clients. In those premium themes are many different options that can be set. Is it possible to set the theme's options to the most ...
4
votes
1answer
452 views

Generate WP-CLI @alias for each site on multisite

I have a few multisites, each with several sites, that I want to auto-generate @aliases for. Is there way to sync those sites as aliases in my site list? I'd like to be able to target a single site ...
3
votes
3answers
3k views

How to use live images on local install?

How to use live images on a local WP install? I want to do something like the code down here in the wp-config.php. Problem is that the siteurl must be a relative path and cant be a url. I want to set ...
3
votes
4answers
9k views

Override Current Theme Setting in wp_config.php

I am looking for a way to override the currently selected theme, preferably from within the wp_config.php file. I know you can override some wp_options settings in the config like define('WP_HOME', ...
3
votes
3answers
149 views

References to other site everywhere in Wordpress site

I am relatively new to Wordpress, have been handed a site developed by someone else on one server, and have to deploy it to another. This site has bbpress installed, plus a load of other stuff. ...
3
votes
4answers
7k views

What are best practices for configuring a server for WordPress sites?

I hired a sysadmin to set up a VPS server for me and, unfortunately, it looks like things were not set up correctly. When trying to install and update plugins, I run into permissions errors all the ...
3
votes
1answer
2k views

WordPress salts set in config and database

I have come across the following code in a new clients existing website in wp-config.php define('AUTH_KEY', 'put your unique phrase here'); define('SECURE_AUTH_KEY', 'put your unique phrase ...
3
votes
2answers
12k views

Wordpress behind Proxy - Mixed Content

My Server Env for a wordpress site is as follows: ---------- --------- ------------- | Client | <-- HTTPS --> | Proxy | <-- HTTP --> | Wordpress | ---------- ...
3
votes
1answer
2k views

How to combine javascript files without plugins?

I remember (it seems...) there was a way, maybe some config option, to combine/merge javascript files (for production sites). I mean just with vanilla wordpress code, not plugins. Am I wrong? If not, ...
3
votes
1answer
351 views

Making a configurable field translatable

I'm working on a theme right now that gives the admin the possibility to set different texts that are used within the theme, by configuring them in the admin panel (e.g. the text that is displayed, ...
3
votes
2answers
12k views

Steps to debug on a blank screened wordpress install

I've been given an old Wordpress installation to setup on a new server. After setting wp-config.php and the values for the URLs in the db, wp_options.siteurl and wp_options.home (the usual process I ...
3
votes
2answers
510 views

Declaratively Configuring Wordpress in XML or JSON or YAML

Couldn't find this on Google... Is there any handy way of fully (or partially) configuring a Wordpress site (plugins and all) using XML/JSON/YAML/etc? In general, I'm looking for a highly-readable, ...
3
votes
1answer
108 views

What is the best way to provide plugin users with a way to customized the styles

I'm working on a plugin to be release to the public, it is a very simple plugin that includes a single html element in the page html. I can do many things to allow users customize its appearance: 1. ...
2
votes
3answers
2k views

Using wp-uploads instead of wp-content/uploads

What is the difference between the wp-uploads directory and the wp-content/uploads directory? I am running Ubuntu Server 12.04 and recently installed WordPress using apt-get, but there have been a ...
2
votes
2answers
618 views

Set wp-content folder to Dropbox folder

Ideally I would like to do this with both my PC and Mac OSX boxes, but for now I would be thrilled with just the Mac OSX. I am trying to keep my WP Themes & Plugin Local Development synced using ...
2
votes
3answers
76 views

How to backup and restore configurations

I am in the process of transferring my WordPress blog to a new host. I've copied the blog files, used XML import/export to copy the contents, and the blog is now up and running. The missing piece is ...
2
votes
1answer
35 views

How to change how long items are kept in the trash?

When the trash feature is enabled, the deleted posts are moved to trash and stored there for 30 days. And there is a schedule/wp_cron event that is responsible for removing these posts permanently ...
2
votes
1answer
546 views

Subdomain and subdirectories together in one installation

I'm currently want to develop my design company website and choosing wordpress as my CMS. How do I should install the wordpress when I want the domain structure like this: Blog = blog.example.com ...
2
votes
1answer
173 views

What should be disabled to run on an internal network with no access to the Internet?

I am setting up a site on an airgapped (no connection to the Internet) internal network. It is quite slow in loading pages. I have already added define('WP_HTTP_BLOCK_EXTERNAL', true); and define('...
2
votes
1answer
8k views

Can I configure WordPress to use postfix without a plugin?

I am developing a WordPress site on a vagrant box and have installed postfix in order to test email notifications. At this guest OS (Ubuntu) level, I am able to end a test email: echo "Test mail ...
2
votes
2answers
3k views

No configuration file found and no installation code available. Exiting

I am getting the following error when I try to access my Wordpress website. It was working quite fine previously. Could anyone help me on this. No configuration file found and no installation code ...
2
votes
1answer
353 views

Where should I add the necessary code to add an extra attribute to the kses allowed tags array?

In trying to post an article on one of the new SE blogs, I came across the following problem. I'm listed as an author which means that my abilities are somewhat restricted. In particular, I'm not ...
2
votes
1answer
2k views

Alias domain to Multi-site installation in Apache

This is regarding to set an Alias domain to Multi-site installation. We want to create a short domain as alias to my main website(Multi-Site enabled).I have tried it using a most common options like.....
2
votes
0answers
158 views

How can I make wordpress suppress mysql errors?

Wordpress has two functions related to SQL queries and their errors as mentioned in What Is The Difference Between suppress_errors() And hide_errors() in $wpdb? From what I've read setting WP_DEBUG ...
1
vote
3answers
317 views

Putting main WordPress blog under a different folder name

I want to use WordPress primarily as a static page CMS for a small business site. I want to use the "pages" feature for most of the pages on the site, except for a news blog, for which I want to use ...
1
vote
3answers
57 views

Per site configuration

I'm building a custom theme that I will reuse on more than one site and would like to be able to configure some things from the admin. For example setting the Twitter and Facebook pages links without ...
1
vote
2answers
610 views

.htaccess file missing from Wordpress install directory

This is occuring on my local machine, Lubuntu 18.04 with apache2 and Php 7.2.15. Steps tried: Enable hidden files No .htaccess file seen: https://nimb.ws/4YJfDT Switch permalink structure to ...
1
vote
1answer
177 views

Allow download_url for lan addresses

I'm hosting a wp site on my own server (at home) and I would like to use wp cli to import media from my own computer. On my computer, I have a web server and I asks to wp-cli to import media from "...
1
vote
1answer
2k views

Set WP_MAX_MEMORY_LIMIT higher than PHP.ini memory_limit

I've read here, but I want to ask if I have understood this correctly. We have a server in which WordPress admin needed more memory. The PHP memory_limit, in PHP.ini, is set to 256M, and so was ...
1
vote
1answer
523 views

While Using Static Pages, How Can I Get /blog into the URL of Each Post?

I have Wordpress installed on the root of my website. It is using a static homepage and posts page. As it stands, each post will look like this example.com/blogpostname. I don't want to use category ...
1
vote
1answer
1k views

Permalinks not working

I know, asked and answered a million times. For the life of me I can't find my error. Trying to set up Permalinks to use post name, /%postname%/ Trying to visit anywhere else other than the homepage ...
1
vote
1answer
5k views

Broken image multisite

I've two wp sites (multisite) with the following config: 1# (Main site) Home: http:// www.mysite.com Upload Path: wp-content/uploads Fileupload Url: http:// www.mysite.com/wp-...
1
vote
2answers
1k views

Wordpress with Lan and Wan Access?

Can someone suggest tutorials on how to properly set up a wordpress multisite installation that I can access from both the LAN and WAN side? I've been looking for a bit and am unable to find what i'm ...
1
vote
1answer
396 views

Can somebody tell me how I am supposed to be using blogs.dir for network / MU sites?

I think blogs.dir is supposed to be used to separate content for the different blogs on a network install of Wordpress (MU or 3.0+ with networks enabled), however, I've not been able to find a clear ...
1
vote
3answers
324 views

Cannot get pages or posts to display

I am trying to set up Wordpress for a client who uses XO Communications as a host. However, getting Wordpress set up is driving me nuts. I keep getting this error message (wrapping message for ...
1
vote
1answer
25 views

Why edits to wp-config.php must come before “That's all” comment

Every time I read about making changes to wp-config.php, the advice given is to make changes before this line: /* That's all, stop editing! Happy publishing. */ Why? What is special about that ...
1
vote
1answer
165 views

nginx.conf appeared in all WordPress installations on folder

I run a couple of WordPress sites on a cloud server that I own. All of these sites run on the same Apache installation. Recently, I've found that in all of my WordPress webroot folders, an empty file ...