Custom permanent links in WordPress installed locally • WordPress Help

 rewrite module

A local installation of WordPress is very useful . There are many occasions when you can take advantage of this despite the fact that this type of facility has its drawbacks.

Either to give courses where you do not have Internet guaranteed, or to test with versions in development, a local installation it is a good resource . Personally I do not love them and I always prefer to do online tests, but it's true that they take you out of more than one hurry and that's why I always have a local installation that I try to have updated.

One of the drawbacks of local WordPress installations, through the systems of type WAMP, XAMPP or MAMP, is that if you change the permanent links of the default option to others as you usually have an ugly error . C'mon, permanent links do not work except the default ones of type http: // localhost: 8888 /? P = 06 .

This is because it is possible that the module rewrite of Apache is not active that is, the one already known by all mod_rewrite .

To make sure that permanent permanent links work, you just have to go to the main window of your WAMP , XAMPP or MAMP and, in the tab corresponding to Apache check that the rewrite_module is selected and if not it marks it to be activated and you restart the local server so that the changes are applied

 rewrite apache mamp

Now should already work . If not, you will have to add the corresponding rewrite rules to the file . Htaccess as indicated in the permanent links settings window, nothing more.

Only as a reminder I leave you a few links on how to install WordPress locally:

  1. Install WordPress on Windows
  2. Install WordPress on Mac
  3. Install WordPress on Ubuntu

NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you:

Create a WordPress Plugin • WordPress Help

 wordpress-plugin "width =" 550 "height =" 215 "srcset =" uploads / 2009/01 / wordpress-plugin.jpg 550w, 500w "sizes =" (max-width: 550px) 100vw, 550px "/> </a></p>
<p> Plugins are part of the success of WordPress, those small pieces of code make <strong> create a website with WordPress </strong> and add functionalities is something trivial.Now you do not always go to depend on others, especially because it is possible, in spite of <a href= more than 18 thousand that there is that there is not one that does exactly what you need.

If you are at that point in you want to take that extra step and show what you have learned, and also want to share with the WordPress Community, here is a series of 2 articles in which you will have the tricks and guides necessary for the development of your first plugin, without the need for a postgraduate program.


If what you want is not to solve a specific need better than do not waste your time, the way to learn to create plugins is to be based on a specific idea, to have an objective. Now, you can also generate something useless, if only to practice. However, the best thing is that you consider creating something that has some use.

If you want some ideas to create a plugin in DevLounge they created a list of how to generate ideas to write WordPress Plugins . My advice is to start with existing plugins and find some way to improve them.

Use good tools

Do not even consider starting to create a plugin without having the basic tools to have a basic programming environment. These are some of the recommended tools:

  • Desktop tools – You must provide the best tools such as code editors, application for screenshots, FTP client, etc.
  • Firefox – This browser is one of the best, and if you do not have it installed already it's about time.
  • Safari – Apple's browser, hand in hand with Integrated Web Inspector is a fantastic tool for developers. [19659014] Firebug – If you have chosen Firefox, you do not have the Inspector Web but there is an extension that will help you visualize the code of the sites you visit or even make changes and view them online.
  • WordPress – Of course, you need a clean installation of WordPress to do the tests on your computer.

It gathers quality information

There is a lot and good information, not only in Ayu gives WordPress, where you can gather information that will come in handy to make your first plugin. Yes, you have to be able to understand written English, it is essential. Here are a few fundamental links:

Create a specific testing environment

Once you have the information and basic tools you have to create an environment in which to start testing. There are two ways to do it. The best is to mount the lab on your computer, using Apache and MySQL.

  1. The first is to create an installation on your computer, for this you have three options:
  2. The second possibility is to mount your test environment in a separate folder of your server. You create a clean installation of WordPress and you already have it. That is, although the current connections are getting faster, the process to visualize each change is slower, it depends on loading each modification through your FTP client.

Master the Basics

Fortunately For programming enthusiasts – like a server – creating a WordPress plugin is a relatively easy process. Really, you will be able to easily create very advanced plugins, but you need to have a minimum base to do it.

A good place to start is in the post called Anatomy of a WordPress Plugin . This tutorial shows you how to create a simple plugin that generates a widget and shows the posts programmed in your blog. You have all the necessary information to do it, including the source code.

Database Access and Manipulation

The interaction with the database is fundamental for almost all plugins, so it is important that you understand the basics of how to connect to the WordPress database and access your data. In the Codex there is a fantastic article that explains precisely this process of interacting with databases .

Uses Javascript and CSS

Although there are plugins that do not need extras to have style for themselves, a little bit of pepper never hurts. A good place to start using elements of Javascript and CSS in your plugin is this great article.

Ajax is another element that makes a WordPress plugin differences, plus it is used more and more. For example, sending data without having to reload the page is something very appreciated by users, do not underestimate it. Here are some resources to learn how to use Ajax in your plugins:

Add an Options Page

It is probably, currently almost essential, that your plugin requires a menu of options on its own page of the WordPress administration panel, in order to configure the possibilities it offers. Again you can use the Codex to know how to add administration menus . If you want a tutorial with screenshots you also have this one.

Internationalize it

Please, do not incur the bad habit of limiting the understanding of what your plugin does to users of your same language. Learn how to do it translatable to several languages.

Spread it

Of course, once you have your plugin created, do not leave it to yourself, share it with the WordPress user community so that others can enjoy it of your creation and promote your good work. Here are some places to do it:

Well, these are the theoretical bases, in a few hours we put the practice in the second article of this series.

NOTICE : this publication is two years ago or plus. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you:

WordPress on Ubuntu

In Cybernauts have created a simple and visual tutorial of how to install WordPress locally on Linux Ubuntu using XAMPP for Linux.

As we have already covered as ] install WordPress locally in Windows and in Mac OS X with this guide you have no excuse for try WordPress on your computer whatever your operating system.

How to install WordPress on Mac

 mamp-logo.png Some time ago Guillermo taught us how to install WordPress locally using Windows and now I have to do it to myself, but using Mac and the simplest application that exists for it.

The application to use will be MAMP a free development that includes in a single package Apache , MySQL and PHP in its latest versions. Although Mac OS X already has everything you need it is much easier to do with MAMP and I will explain it.

The first thing is to download the latest version of MAMP from the project page .

 mamp-widget.png Mount the image on your Mac and start the installation process. At the end you will have a folder called MAMP in your folder Applications and a widget to install in the Dashboard (double click) from which to start or stop the server that has been installed automatically. Actually, you should only start MAMP to have your local server running, and you can check it by clicking on the " Home Page " button of the widget or main application.


From here you have the links to the pages for the management of your server, and the simple appearance of this screen already makes sure that you have installed your server without having to have configured anything.


Notice that the server is hosted on " localhost: 8888 ", the default server of MAMP, chosen so that does not interfere with the installed Apache by default in Mac OS X.

As we already have the necessary base installed for our blog we have install WordPress . To do this, from the homepage of MAMP we click on the link to PHPMyAdmin to create the WordPress database. We put a name as intuitive as " wordpress " and click on the button " Create ". The rest of the options are left as they are, you do not have to touch anything because it is not necessary.


The following is download the latest version of WordPress unzip it on our Mac and move the entire contents of the folder " ] wordpress "a Applications -> MAMP -> htdocs thus staying …


Next we open the file wp-config-sample.php and complete the lines that I have underlined you with the data you see there. It will only change if you put another name to the database. The default data will always be

  • DB_NAME – wordpress
  • DB_USER – root
  • DB_PASSWORD – root


Once the information is saved the file as wp-config.php in the same folder ( Applications -> MAMP -> htdocs ).

And with this we only have to start the installation WordPress just like we would in a server on the Internet. The only difference is that instead of going to you will do it to localhost: 8888 and there start the famous installation in 3 steps that Guillermo had to well explain in this video.

With this we already have a blog running in local in which try templates, plugins or new versions of WordPress before applying them to our blog.

Regarding MAMP, just tell you that you can configure its behavior to use another folder …


configure some start and shutdown options …


or change ports default connection if desired.


NOTICE : This publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you: