[wp-hackers] Link metadata?
malaiac at gmail.com
Mon Jun 15 08:09:59 GMT 2009
2009/6/15 Mike Schinkel <mikeschinkel at newclarity.net>:
> I'm pondering an architectural decision and wanted to run it by the hackers.
> I'm building a plugin to provide "Post Links", i.e. "Links associated with a given Post." I've got a site where I'm using posts in ways
You should check zeList plugin
http://wordpress.org/extend/plugins/zelist/ which includes some of the
things you're looking for.
For link extended fields, I strongly recommend the creation of a
link_meta table (aka option 2), and duplication of post_meta
functions, for two reasons :
- adding the table and copying the functions takes 30mn top.
- if and when WP decides to switch to a taxonomy-neutral meta table it
will be easier to switch from a "roughly similar to postmeta "
architecture than from a custom hack.
In zeList, just check zelist/includes/metas.php for the functions and
zelist/zelist.php (function zelist_install) for the database creation.
You may need to work on the Link Edit Page to add custom metas fields,
since I did not add these.
As for link related to posts, it can be done manually, or automatically.
(check "Liens connexes") for an example of zeList in action. The
function is "related_links()" in
For the description/title/images parsing, check
it includes a zelist plugin (zelist-submitter), not released yet,
using the zeList API.
Let me know if some of that is helping you !
More information about the wp-hackers