[wp-hackers] Link metadata?
mikeschinkel at newclarity.net
Mon Jun 15 17:30:45 GMT 2009
Thanks for the pointer to zeList. Are you going to test/update it for use with v2.8?
When I started writing my email I had been planning to add an option #3, a link_meta field. After completing the email I had changed my mind and decided a wp_linkmeta table a.k.a. option #2 would probably be the best. Thanks for confirming my decision to use a wp_linkmeta table, that is assuming I don't end up using zeList directly.
Custom Wordpress Plugins
----- Original Message -----
From: "Malaiac" <malaiac at gmail.com>
To: wp-hackers at lists.automattic.com
Sent: Monday, June 15, 2009 4:09:59 AM GMT -05:00 US/Canada Eastern
Subject: Re: [wp-hackers] Link metadata?
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 !
wp-hackers mailing list
wp-hackers at lists.automattic.com
More information about the wp-hackers