• I’ve been working with custom post types, and specifically with a hierarchical custom post type that is intended to behave more like a Page than a Post – having child posts and so forth.

    The one big obstacle I’ve hit is that, when using wp_list_pages to output a list of links to the content in my hierarchical post type, the current_page_item class is not being applied to the active post.

    I know this is because current_page_item was designed only to apply to Pages, but given the expanded capabilities represented by custom post types, it seems to me that it should be able to apply to hierarchical custom post types too.

    Has anyone hit a similar issue, or have any ideas on a workaround?

  • The topic ‘Hierarchical custom post types – no current_page_item class’ is closed to new replies.