Articles of setup

Hardening wordpress: blocking /includes with htaccess

This page http://codex.wordpress.org/Hardening_WordPress says this should be included in the .htaccess file to block requests for files inside the includes dir. # Block the include-only files. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^wp-admin/includes/ – [F,L] RewriteRule !^wp-includes/ – [S=3] RewriteRule ^wp-includes/[^/]+\.php$ – [F,L] RewriteRule ^wp-includes/js/tinymce/langs/.+\.php – [F,L] RewriteRule ^wp-includes/theme-compat/ – [F,L] </IfModule> # BEGIN […]

How to move theme directory but not plugins/uploads out of WordPress root directory?

I am trying to set up a few local multisite installs that will share the same themes folder, but have separate upload and plugin folders that will be in the usual places in wp-content. UPDATED: WordPress is installed at /Users/josh/Documents/Websites/themedev.dev/ and I’ve create the new theme directory at Users/josh/Documents/jp-content/jp-themes and put twenty twelve into it […]

Multiple WordPress outside wordPress installation?

I have a main page where i want to show up the latest post content of two or more blogs.. for now I have this code : <?php // Include WordPress Blog 1 define(‘WP_USE_THEMES’, false); require(‘./blog1/wp-load.php’); ?> <?php query_posts(‘showposts=3’);?> <?php while (have_posts()): the_post(); ?> some of my blog 1 stuff.. . <?php endwhile; ?> <?php […]

Best practices for making a WordPress site “movable”?

I’m planning to buy a domain and install a WordPress site on it at a web-hosting company. But first I’ll need to iron-out some bugs… I got a working LAMP-stack at my home-computer, so I’m thinking about first installing my site locally – off the Internet. I’ll be mostly tweaking and making “test-posts” to check […]

How to edit pages after installing WP

I’m really new to WordPress. I just installed it following the instructions here http://codex.wordpress.org/Installing_WordPress_Locally_on_Your_Mac_With_MAMP and I’m wondering what to do next. I already have an account and a website set up, and how do I edit that website now on my computer? any input would be really appreciated.

Putting my site live

Can anyone help? I’ve been building a wordpress site in a sub directory of an umbrella ‘development domain’ if you will, and am ready to go live with the site. It’s a single install of wordpress. The wordpress file location is to remain exactly as it is, and we’re just repointing the DNS of the […]

WP-Admin gives 403 Forbidden after login on CentOS 7

I’ve setup a brand new CentOS 7 VPS; everything configured by me. LAMP installation and the Apache virtual host configurations are all done. I’ve checked them before installing WordPress and the HTML sites were being showed as well as the PHP info and everything else. After that I went on to setup WordPress as usual. […]

Programatically Creating Initial WordPress Site

(I have found some links to customising an initial install like this one and this one, but unless I’m missing something – which is quite possible, they don’t answer my question) I’m wanting to set up a minimal WordPress install that users can then run with. I have written a script which downloads the latest […]

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 the blogging part of WordPress. So I want a structure like this: example.com […]

What's the best action to use when you want to do something only once per theme setup?

I’m writing a theme which has it’s own set of database tables. I’m wondering what is the best action for me to use when I want my install function to be invoked only once when the theme is activated for the first time? I know there is a setup_theme action, but not sure if that’s […]