Post type hierarchy

To me the most logical would be to have a “Book” custom post type, and then all the attributes of the books (Author, Collection, Genre, etc.) would be custom taxonomies. Then for your URLs you could use some custom URL rewrite method to get what you want.

custom post type index page

If you have: register_post_type( ‘my_custom_post_type’, $args ); And you need a custom page to displays all entries from this custom post type, you have to create: archive-my_custom_post_type.php. But if you don’t need a custom page, wordpress will use archive.php to display you custom post type archive. If you only need to customize the entry page, … Read more

Categories lose hierarchy order once assigned to post

You could try out Scribu’s plugin, i believe this addresses the very problem you’re describing which has been reported on Trac a handful of times(but closed/deleted). Category Checklist Tree by scribu http://wordpress.org/extend/plugins/category-checklist-tree/ Related tickets: http://core.trac.wordpress.org/ticket/14723 http://core.trac.wordpress.org/ticket/10982 Hope that helps.. 🙂

Getting taxonomy terms used by custom post type

If you see doc for wp_list_categories in codex, you’ll se that it accepts a include param, that should contain a comma separed list of categorys ids. So if you change your function get_terms_by_post_type creating the function get_terms_id_by_post_type to retrieve only the term ids, just like: function get_terms_id_by_post_type( $taxonomies, $post_types ) { global $wpdb; $query = … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)