We run several installations of Wordpress without using MU. The whole thing got a little out of hand code wise as there are really old plugin versions, legacy files and lots of potentially insecure data on the server. The core installation is out of date as well as the plugins. Some of those plugins do not work anymore. What we want to do is make a clean cut, install a new version with all plugins needed. We also want to use a different theme. But we do not want to loose the articles, comments, tags aso.
I tried exporting everything with Wordpress' own functionality and then import it into the new system. Works fine, except that the routine changes article id, which is bad for permalinks and has side effects when it comes to tweaks where we worked with those ids to display special extra content.
I think the best way is to use the old database. However, I think I cannot just use a dump of the old version. Does anybody know which tables I need for the whole content thing without systems settings? Or is there any other way?
I would not suggest that aproach, but if You like to try, then:
comments data:
wp_commentmeta,
wp_comments
posts data, categories, custom menus etc:
wp_postmeta,
wp_posts,
wp_terms,
wp_term_relationships,
wp_term_taxonomy
users:
wp_usermeta,
wp_users
As You can see, there are 10 mandatory tables and one more:
wp_options
which You dont want to copy.
All other tables are from plugins etc.
Related
I am working on a website built on wordpress in which I want to replace some plugins. The reason behind the replacement of those plugins as it is no longer developed. The most important plugin which I want to replace is Accordion Shortcodes.
From the tutorial mentioned here,
Accordion Shortcodes is a simple plugin that adds a few shortcodes for adding accordion drop-downs to your pages.
The accordions should blend seamlessly with your theme. However, you may want to edit your theme’s main stylesheet in order to add some custom styling (see below for sample CSS).
Problem Statement:
I am wondering what best practice I need to follow in order to replace a plugin in wordpress. Also, what would be the best replacement for Accordion Shortcodes, Modify Attachments Meta ?
John, Your title says "How' and the above two answers describe "how". However reading the text implies you want people to tell what plugins are best to replace your existing plugins with. As the comment says, plugins do not always 'replace' each other exactly and may have many more features. Judging by the names of the plugins, I think you need to understand why and how those plugins are being used. An approach:
Discuss with the site owner what features they care about and what are 'nice to have'. They may not know which plugins are delivering which aspects of the website, so very important to know what are the absolutely important aspects. They may no longer need some of those plugins (eg: Modify Attachments Meta? might be a tool used to do something and no longer needed?)
Assess what features are being delivered by each of the outdated plugins, and which are important or non essential.
Research for alternate plugins that provide the features that are important
Review the best candidates and test them on test copy of main site.
Work out what if any conversion may be required. EG: if's access control, how is it doing the access control? how would you convert that?
Test the conversion, test the new plugins on converted data.
You can simple deactivate plugin and then remove the plugin.
Here is a plugin suggestion
https://wordpress.org/plugins/accordions/
You can use this plugin instead of that outdated version of the Accordion Shortocdes plugin.
Please let me know it helps to you.
Here's how I like to go about replacing plugins:
Identify any shortcodes it provides, and search your database (via either PhpMyAdmin, or a database search plugin like Better Search Replace) for that shortcode. This will identify all the posts & pages you'll probably need to update.
Save any custom CSS or other configuration data that might be relevant to the replacement.
Assuming there's no conflict between the old plugin and new one, install & activate the new plugin. Then you can begin replacing the usages of the old plugin one by one (and modifying the configuration of the new plugin to get it "just right").
After you've done all the replacements (which you might want to verify by another database search), deactivate and remove the old plugin.
This is how I do plugin migrations. In your case, in step 3, you could probably install each of the plugins you're considering, try them out, and only do the full migration for the one you like best.
I need to move posts (just posts, no pages) from Wordpress to Sitefinity. It seems simple enough to move the content from one table to another, but there's a great deal of image assets and I would also like to preserve the meta data, etc.
Short of writing a complex migration tool myself or manually moving nearly 200 posts, I found this tool which helps in theory, but it is old (3 years from last update) and there's no instructions on what to do with it once the code is downloaded.
Does anyone have a better resource or a tried and true procedure for such a migration?
Have you had a look at this 'plugin' put together by TimW255?
https://github.com/timw255/WordPressToSitefinity
You will want to fork it and update the packages to your version of Sitefinity.
I have a website (www.easterisland.travel) that I'm considering converting into a Wordpress site. Why? Basically for the following reasons:
1: To use a CMS, so that I can teach others to further add content to the website without having programming knowledge. I would built the advanced pages myself though, and the pages that others would manage would be simple information pages.
2: Access to all of these great plugins, for example the "similar pages" plugin at the bottom of each page (which I haven't found as a independent solution for raw webpages), which is just fantastic to keep people reading.
At my site I have lots of custom stuff like booking systems that I've created. There's an AngularJS shopping cart (www.easterisland.travel/tours/), instant online booking and payment (using PayPal's Express Checkout) etc. There's a page for cruise ship shore excursions (www.easterisland.travel/cruise-ship/) that's automatically generated from database data, and I've created a system where I can add cruise ships and shore excursions (adding correct itinerary, price, info etc). Passengers can also log in and communicate to other future fellow travelers within the same group, and get organized for meeting up on the tour day. I have many more plans to go as well, for example showing hotel info, displaying TripAdvisor data (using TripAdvisor API) etc.
The million dollar questions are:
1) Can all of this be achieved in a Wordpress site? Can I add all of these systems using this platform? What are the limitations?
2) Would it make sense to change to Wordpress?
3) What implementation should be used? I don't want my code to be removed or altered when Wordpress is automatically updated.
Thank you!
Wordpress doesn't have any limitations, you can extend its default functionality if it can't accomplish what you need with either plugins or custom code. and having a framework is always better than building from scratch in many ways.
HOWEVER, wordpress was originally design as blogging platform, and if you plan on extending its simple functionality you should take some time to understand how it works to properly integrate your custom needs or things could get ugly,
If you know how to interact with the database, you can easily do what you want, there are built-in functions you can use according to your needs for database interactions or just create your own if it doesn't fit well very much.
just a quick overview with wordpress database.
wp_posts - where sites main front-end data are stored, like posts, pages,
wp_postmeta - storage for additional data that are stored on wp_posts
wp_comments - storage for user interaction data for wp_posts like comments, I've also used these before to store user/admin messages.
wp_terms - use for dividing/categorizing wp_posts data, like categories and tags,
wp_options - use for back-end storage data and configuration.
You'd need to check out these functions as you're probably will encounter them in the future
https://codex.wordpress.org/Function_Reference/add_post_meta
https://developer.wordpress.org/reference/functions/get_post_meta/
https://codex.wordpress.org/Function_Reference/update_post_meta
https://codex.wordpress.org/Function_Reference/register_post_type
https://codex.wordpress.org/Function_Reference/register_taxonomy
https://codex.wordpress.org/Class_Reference/WP_Query
If you also need database interaction, check out https://codex.wordpress.org/Class_Reference/wpdb
and for front-end implementation, check this out https://developer.wordpress.org/themes/basics/template-hierarchy/, though I never used any other wordpress theme except Genesis Framework for these past 5 years as I never had to mess too much with HTML codes and almost everything can be customize using actions & filters. I advise you to use Theme Framework (and remember to always use CHILD THEME to be safe from Main Theme upgrade)
You might also want to check -> https://github.com/WebDevStudios/CMB2 (I prefer to use this than Advance Custom Fields plugins.)
Booking system in wordpress is a bit complex, I've successfully use gravity form as booking system with AngularJS + Ajax, but never tried a custom one from scratch and don't have a chance to use booking plugin as never encountered a cleint that wants a simple booking system.
Just to answer your question.
Yes, It can, for comparison, take a look at woocommerce plugin functionality and features, I believe thats more complex than what you need.
It would make sense to convert a site built from scratch to any CMS (wordpress is an option), the CMS is up to you, though its better to use the one that you know more for easier integration and customization.
You can use your child theme "functions.php" for extending your custom functionality, like create a folder in your theme for all your custom code and include/require it on your child theme functions.php or better create your own plugin to properly integrate them, you can divide the functionality in plugins, like plugin for booking system and plugin for payment functionality. check this out https://github.com/hlashbrooke/WordPress-Plugin-Template
I hope this would give you an idea.
Yes you can do all that. You will need someone with knowledge in wordpress themes and plugins but it is possible. The beauty of wordpress is, that you can write "bare" php code, and the small amount of functions to interact with wordpress are well documented.
Wordpress itself, is structured "simple" (compared to fancy tools like magento for example). So all it manages, are posts / pages / ... which, more or less derive from the same database object. You can add functionality to those things (for example, make posts cruise ships and other posts to shore excursions) or you can add your own database structure on top.
The theme system is bare php code, so you dont have to crawl through a thousand lines of xml codes to adjust little things.
Wordpress power derives from its simplicity of the "core wordpress" and the feature volume based on all those plugins. I believe alot of people would say, that you should go for a custom solution (based on symfony for example), or a CMS that already comes with more of your desired functions (like magento which has the checkout / paypal included), but I (as a wordpress fan) would see no problem to take wordpress.
I have never failed to find a plug-in to do what I needed! I manage three WordPress sites - although none of them is commercial. (Yacht Club, Cycling Club and Political Party EDA).
There is a plug in that allows PHP on any WordPress page, but it means that the Editors all have to write using the text (HTML) view rather than Visual tab. I found that useful for some of my pages - and I'm the only "Editor."
There's also a plug-in that allows you to code PHP in Widget. That doesn't have the above disadvantage.
I found a Wordpress plugin called Extra Comment Fields that should work, but I'm having trouble with the database! Extra fields are not stored anywhere!
Table plugin uses (and should create) is called wp_comments_extra, but this table is nowhere to be found. Is there any way to manually crate correct table by backwards- engineering plugin's .php file?
You should never have to do that. In fact it would be a really bad idea to. Usually modifying plugins can cause a lot of problems if you don't know what you are doing. What are you trying to do? The table should be created automatically when you activate the plugin.
What makes you think that is the table that would be created, anyways? It could use Wordpress built in meta tables, rather than it's own. Not every plugin creates a table named after itself.
And besides, that plugin hasn't been worked on since 2008. It could be incredibly out of date. If I were you I would look for a different plugin.
I am trying to install on my blog a system that allow post rating and add in the sidebar the top ten of most rated post...
For this i am trying to use much cummon plugins, such as:
contestant-rating, post-ratings, buddypress-rate-forum-posts, rate-my-whatever
also this:
http://wordpress.org/extend/plugins/wp-postratings/
that looks to be better of all...
But nothing they won't work correctly...it seems to have problem with PostgresSQL DB...
Do you know this issue? if yes, have a solution?
Wordpress is done for the MySQL initially. There's an extension for using PostgreSQL with it, and it even works (we're using it for small blog).
Unfortunately, many plugins are designed to query database directly, not via the Wordpress layer. If this is the case, then you have either to modify such plugin, or look for something else.
There're some movements towards support of more databases, but it is work in progress.