WordPress Business Themes › Forums › Responsive Themes › Directory Theme › Changing the database key
I had a database key for the website url set to
but it never seemed to save the url, so I thought perhaps I should change the actual database key.
Which you can do under edit custom field key as well as it seems you can change the key on the individual listing edit page
I am thinking that this could be a problem if an admin gets in there and changes the keys.
Plus when I changed the key for URL to website_url and tried to find it on the list of custom keys for Shrink the web, it stays at url on that drop down list.
So I am thinking that even though it appears you can change the key in the above 2 places, that it does not really change.
If someone could clarify this for me I would appreciate it.
On the listing pages it should be just the name not the key, I think.
Edit. Sorry didn’t see that this was responsive theme….
however currently you can change the key in both the custom fields edit, and on the individual directory listing edit page. When you do what happens is that the next record that gets created includes the field as a new field along with the old field staying there.
So it has the effect of adding a new field to the database, which makes sense as the table already exists, but to the user it appears that the field key can be changed.
Probably need to eliminate the ability to change the key once their are data records present or a global setting to “Lock custom field database keys” so that once the final design is set and the test records are deleted from the database and it goes live you could lock it so admins don’t accidentally edit a database key value and mess up the database.
changing a key after its already been used by some posts will not make a difference to existing one, it will simply use the new for for newly created listings so if you must change, do it before your site goes live.
Plugins like shrinktheweb will have their own setup options for which key you use.
Perhaps I am worrying about something that will never happen, but if an employee happened to change the key for the field on the listing edit page it would cause an issue. Not sure why the actual key is editable on the listing edit page.
Why would you allow employees to edit any of the theme sections?
Mike if the issue ever comes up ill look into it further, at the moment i dont think it would ever be an issue.
@Richard, the custom field database key can be changed on the listing edit page, I certainly would want employees to have access to editing fields on a listing.
@Mark, that is fine I am sure you are swamped with other more pressing issues. Wow I think that was a pun!
Submit your feature requests to our ideas board and it could be included in a future theme update.
or contact our support team