Remove Duplicate Pages (Clean Database)

Occasionally it might happen where an update to your website fails. In some instances this can cause duplicate pages to be created within wordpress. This article will show you how to clean them up and get everything up to snuff once again.

Clean The Database

Within wordpress > settings > Lodgix settings, at the very bottom of the page, there are two buttons for "Save and Regenerate" and "Clean Database", those buttons are important buttons to understand.

The Clean Database button will delete all plugin generated pages from wordpress and fix any anomalies that could creep into the wordpress database. It's the equivalent of turning your computer on and off. When you do this one item to note is that your menu items will need to be setup again within wordpress > Appearance > Menus. We usually take a screenshot of a client's menu structure before we clean the database to assure that the Lodgix components of that menu are added back after the database cleaning.

The Save and Regenerate button will force the plugin to regenerate your property and listings pages on your website with the latest data from Lodgix. Occasionally an update will be made to a property on Lodgix and that update will fail to update on your website. Clicking "Save and Regenerate" will force that change to update to your website. You must Save and Regenerate after cleaning the database (but not until after you've confirmed that all Lodgix generated pages have been deleted from wordpress).


Clues that you might have duplicate pages within wordpress.

Assuming that permalinks have been enabled within wordpress, a url will look something like this:

if a duplicate page exists, that url might look like this:

It's usually best when you see a duplicate url to get into wordpress and wipe it clean to assure that their is only one url per property. It also helps reduce overhead and confusion when administering wordpress.

Last step: Fetch Property URLs within Lodgix

To assure that the correct (and most recent) URLs are known to Lodgix, go to settings > wordpress options and click on the button to "Fetch Property URLs". This is a time saving feature. Every property within Lodgix has a URL field within the Details tab of property setup. You could manually go into each property and check that it has the most current URL. Or you could simply use Fetch Property URLs and Lodgix will do it for you in seconds.

This assures that the correct URL is being associated with each property and is frequently referenced within Lodgix booking calendars, as well as in many merge tags used in dynamic document and email creation, such as [PURL], etc..

Did this answer your question?