Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to find a long-term GUI/plugin-based solution to working with custom posts types, custom taxonomies, and custom fields/metaboxes.

To this end I have been reviewing all the major custom post-type related plugins. A long list. I have discovered something which I am confused about, hence my question. I was not able to find an answer to this question after much research online.

I notice that NONE of the plugins I have installed appear to be cross compatible. If I create a custom type in one, it will not show up in ANY of the others. If I create a custom taxonomy in one plugin it will (in most cases) show up as being assignable to a custom post type created in a different plugin… which makes sense to me. But it will not show up as editable in any other custom-type plugin. The same goes for custom fields/metaboxes.

Having read through the custom types info in the Wordpress Codex this behaviour doesn't make sense to me. I have, perhaps wrongly, assumed these plugins are adding code to the functions.php file, and that each plugin would be able to access the code of the other.

My concern is that if I use a particular custom types (etc.) plugin and then later on it is not updated to support future WP versions, I may end up losing all my custom-types/taxonomies/fields functionality. I would then have to set up all the types, etc., again using a more current plugin. A few of the plugins I've seen have an export and perhaps an import feature. But as far as I can tell this is for exporting and importing the data of that particular plugin (although I am not 100% certain about that).

Is my concern a valid one? Or am I missing an essential point somewhere? If I set up a lot of custom content using a plugin, and that plugin ceases to function down the road, will I have to set everything up again?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Let's start by looking at the Action Reference page in Codex: Actions Run During a Typical Request.

When a page is loaded on the front or back end, WordPress goes through the load process- loading its own code, loading plugins, the theme, calling each action in sequence.

You can see in the second and third actions where it registers the native types- post, page, etc..

The environment is built this way for each request- a post type exists for the life of a request, and disappears if the plugin that registered it is deactivated.

However, the actual data- your posts, taxonomy terms, custom field values- are all safely stored in the database. If you were to register the post type with another plugin using the same name, your post type would appear and be usable again.

So, in short, as long as a plugin adheres to the WordPress API, you aren't in danger of losing that data

share|improve this answer
    
Thank you very much for explaining this so clearly. I'd actually just moments ago started to figure this very info out (not in such detail though) through more digging around, and I was returning to this question to ask if I'd in fact correctly understood the following: so long as I recreate the same TYPE, FIELD, and TAXONOMY with another custom content plugin (in the future) my custom content will in fact be pulled in from the DB. I gather from your answer, I have understood correctly that I should have no issues changing custom content plugins in the future (if they adhere to WP API). –  inspiredlife Aug 7 '12 at 23:18
    
that's correct. one thing to look out for with meta data is that you may be relying on a plugin's api to get your data out in a meaningful form. one example is advanced custom fields- if you use simple fields you can get the data with built-in WP functions, but if you use more advanced features, like repeater fields, you need to use ACF's functions to get the data in a useful way, due to the way it's stored via hashes in multiple fields. –  Milo Aug 7 '12 at 23:34
    
Milo, Thanks. That's very helpful to know. I did notice that some of the plugins had more (advanced) options than others, with a "repeater" field being the first one I noticed available on one plugin and not on the others I tried. I will certainly keep this in mind. –  inspiredlife Aug 8 '12 at 3:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.