Tag Info

Hot answers tagged

5

It's a very loaded question, I'll try my best here, keep in mind it's 4am, so I'm just giving you highlights, not detailed explanations. Linux I'm assuming you're using a recent version of Ubuntu Change the default SSH port from 22, to something else (/etc/ssh/sshd_config). Either enable AllowGroups or AllowUser in the sshd_config, Install fail2ban ...


5

You don't need to add robots.txt file to the root of your site. robots.txt file is generated in real time, when you visit http://mysite.com/robots.txt. The function, responsible for creation of this file, is do_robots. If you wish to add your own directives, just write your hook for robots_txt filter, like this: add_filter( 'robots_txt', ...


4

To expand on duncmc's answer, Install WordPress in the root directory of your site. Then log in to the WP Admin, go to Settings > Reading and specify a static page for the front page of your site. and Tnorthcutt's answer, you also need to specify which page you want blog posts to show up on. That's done on the same Settings -> Reading page: ...


4

To map your domains, you can consider to use the WordPress MU Domain Mapping plugin which works with wordpress 3.0 as well. Otto has a tutorial online: WordPress 3.0: Multisite Domain Mapping Tutorial Next to that Import/Export should mainly do the job to transfer the sites.


4

There might be hardcoded links in the theme; download it and do a multifile search with a text editor. Editing the text dump destroys serialized data; see another Q/A here: Why is my database import losing text widget data? To correctly change URLs in the database, use the queires below in phpmyadmin for WordPress. You will also need to change URLs in the ...


3

If you are using a twentyten/eleven theme, they hardcode the pingback meta tag into the head.php file. Remove that line or use your own theme. Also, and maybe it's only in multisite, but the X-Pingback header is sent along with the xmlrpc endpoint url as well. Removed with the following: /** * Remove the X-Pingback header, since pingbacks are disabled */ ...


3

Well, someone has to be hosting it, so I recommend tracking them down. I've taken the liberty of doing this for you (using WhoIsHostingThis?). Your host is IX Web Hosting, contact their customer support and see if you can either get them to do the upgrade for you or, preferably, get them to give you admin access to your site.


3

Based on your needs, yes: you should probably be using a Network (WordPress with MultiSite enabled). All network sites run the same version of WordPress Each network site can activate its own Plugins. You can explicitly allow each site to manage its own Plugins. Each network site can have access to different Themes (though you will have to manage access to ...


3

Does Wordpress core has this function defined somewhere? While I haven't used it, you are probably looking for wp_salt or wp_generate_password. wp_salt is located in wp-includes/pluggable.php. can these salts be generated randomly Yes, of course. are there any specific rules for creating them There is no specific rule. The generic rule is to ...


3

You can do it using Widget Context plugin or Widget Logic plugin. They work fine. I prefer Widget Context because it has more flexibility.


3

If you want sections in a subdomain and in subdirectories, use a multi-site installation. See Create a Network and our tag multi-site. Then you set the the blog and the shop as separate sites, and the portfolio as a custom post type or as a regular page in the main blog.


2

Did you get clean copy of WordPress for reinstall (like went and downloaded from wordpres.org)? That line should be following (SVN) require('./wp-blog-header.php'); And it absolutely should not be edited since it is part of WordPress core.


2

that Wordpress error message is probably misleading. Wordpress looks for the domain name in $_SERVER['HTTP_HOST'] (PHP Manual) and if it contains a port number (separated with : as usual like http://example.com:444/) it will only accept two variants: port 80 an port 443. I assume that in your varnish configuration other ports are given and so you bump into ...


2

blogs.dir was the way to handle specific blog plugins and themes when it was WordPress-MU but since version 3 came out and the WordPress-MU was integrated into WordPress Core and introduced WordPress Multisite, that's no longer the story. WordPress Handles the creation of the new blogs/sites in the database and mainly in the background so you won't see too ...


2

At the risk of not answering the question (which Vid did quite well), may I suggest that you switch to a VPS host that offers to do the system administration for you (usually at no charge). I'm thinking of http://hub.org specifically. Marc (the guy who runs it, and one of the original four who created PostgreSQL) is the best system admin I've ever come ...


2

Not exactly what you are asking for, but very close. There is a concept of 'dropin' plugins that exists primarily to override or add to core functions The dropins will always load. So one ftp's up wordpress including whatever plugin files you want that will create your default environment. These should be in the top level wp_content folder. I have one ...


2

According to what I read it is because of an odd implementation of that function, apparently the number is used to add a Limit statement to the SQL that is used to get the pages. Then it applies the child_of requirement after retrieving the data from the database. So if you limit the query to 3 chances are you will not get any results that are also a ...


2

WordPress MU uses one database and each blog gets his own tables with the blog id in the prefix, so once you install a network installation your database should have these tables: wp_1_categories wp_1_comments wp_1_link2cat wp_1_links wp_1_options wp_1_post2cat wp_1_postmeta wp_1_posts wp_blogs wp_blog_versions wp_registration_log wp_signups wp_site ...


2

From your dashboard, visit Settings > Reading and select and for the first option, Front page displays select A static page (select below) and then select that specific page (and then another page you create for your posts to show up on if you would like).


2

What about using something simple like a plugin. I'm using Widgets Controller and it's a good one. A plugin that give you control for show or hide widgets on WordPress Categories, Posts and Pages.


2

This plugin http://wordpress.org/extend/plugins/wp-page-widget/ is very good and here're some screenshots and more info about it http://codeandmore.com/products/wordpress-plugins/wp-page-widget/. Used it on quite a few sites and never had any issue. The best thing about it is that you can actually manage the widgets for each specific page on the page's ...


2

Well, after lots of digging (before and after posting this question), I think I figured it out. As @s_ha_dum suggests, the reason behind the odd directory placement is likely a personal preference of the person who created the Ubuntu "wordpress" package. Perhaps it makes for easier partitioning of permissions, or it makes updates more safe (in case the ...


2

First of all, in order for Wordpress to generate a robots.txt for you you must be using a non-default permalink structure. Make sure you've selected an option in the Settings > Permalinks menu. Also, if a robots.txt file exists at your root directory it will override the setting in Wordpress. It looks like you already have a robots.txt file and that is the ...


2

It's best to just log errors to the server and then use bash or a server script that supports email and error analysis (instead of PHP). There are lots of log file tools out there, simple ones like Logwatch, Swatch, Octopussy, or more complex ones like Nagios. For errors which are triggered using WP_Error you can write an email alert or log function right ...


1

Drop this in a plugin & activate. I should note this doesn't take into account things like child themes - it's purely for toggling which theme renders based on SOME_FLAG. add_filter( 'stylesheet', 'switch_ma_theme' ); add_filter( 'template', 'switch_ma_theme' ); function switch_ma_theme() { // Return the theme directory name return SOME_FLAG ...


1

Add the following to wp_config.php: define( 'WP_DEBUG', true ); Reset the Plugins folder Revert to the default Theme (currently Twenty Eleven), using a similar method to the Plugin-reset step (just be sure that the only Theme available in /wp-content/themes/ is twenty-eleven) If your site is restored, great! If not, you likely have some sort of server or ...


1

Go to ur wp databse and seethe table wp_options there u will see site_url in id 1 change that link to your site link. if its the problem you will solve it otherwise there is something else -other idea to check where its causing problem or not is login to your wp-admin and check general under setting menu you will see the site url from there :). enjoy if this ...


1

Is it possible? Yes. Option 1 Simply register and enqueue your default stylesheet. The theme stylesheet can then be used to override whatever styles you implemented. function register_my_styles() { wp_register_style( 'default-style', plugins_url('default.css', __FILE__) ); wp_enqueue_style( 'default-style' ); } add_action( 'wp_enqueue_scripts', ...


1

Although WordPress MU requires just a single database, as seen on WordPress Codex, you can always use different databases if you prefer to. Plugins such as Multi-DB allow you to do so, and although this wouldn't be much needed for a small-medium network, it would be interesting for large setups.


1

The answer is theme depended and since most premium themes have their own framework/options panels then its going to be hard to tell where are the options are saved but in most cases they are saved in the options table in the database. So the tricky part is to know what are the options names. You can look for them in the themes code either by searching for ...



Only top voted, non community-wiki answers of a minimum length are eligible