[wp-trac] Re: [WordPress Trac] #4609: Default theme (Kubrick): WP
2.3 do not display all links
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 12 18:50:02 GMT 2007
#4609: Default theme (Kubrick): WP 2.3 do not display all links
----------------------------+-----------------------------------------------
Reporter: albaran | Owner: anonymous
Type: defect | Status: reopened
Priority: normal | Milestone:
Component: Administration | Version: 2.3
Severity: normal | Resolution:
Keywords: |
----------------------------+-----------------------------------------------
Comment (by Otto42):
In your database dump, the link_category is set to zero for all of the
links that you have listed. But there's no term with a term_id of zero.
wp_list_bookmarks() will therefore skip those link categories since
they're empty of links.
Basically, it works like this:
* wp_list_bookmarks gets all the terms where taxonomy="link_category".
* Then it loops through those, and for each one it gets all the links that
have link_category = term->term_id.
* If it finds any, it displays them.
So, the problem is that the link_category is set to zero on all your
links. Why that is so, I cannot say. Perhaps it's something to do with
your importer script? Or something else being weird there. I'll try it
myself later.
--
Ticket URL: <http://trac.wordpress.org/ticket/4609#comment:10>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list