• I’ve just spend all night trying to find out a way to get custom post types to get highlighted in my menu AND showing the parent siblings in the menu. Untill I found this plugin! Worked great.

    I just had one small issue: The plugging focusses solely on custom post types. Although I needed the builtin ones as well. (These also weren’t getting any menu’s or highlighting classes) on single’s.

    To fix this I did the following:

    On line 38; i took:

    $custom_post_types = get_post_types(array('public'=>true,'_builtin'=>false), 'object'); ?>

    And replaced that with:

    $custom_post_types = get_post_types(array('public'=>true,'_builtin'=>false), 'object');
    $builtin_post_types = get_post_types(array('public'=>true,'_builtin'=>true), 'object');
    
    $post_types = (object) array_merge((array) $custom_post_types, (array) $builtin_post_types);
    ?>

    Now I was able to add my blogs as a 3rd level child to my 2nd level blog menu (still following? haha). Anyhow I thought this might be useful to others experiences the same problems, you might want to add that as an option or something 🙂

    http://wordpress.org/extend/plugins/post-type-archive-links/

Viewing 1 replies (of 1 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    Thanks Jeffery,

    Just a heads up – this isn’t in 1.1, so you’ll need to redo those changes I’m afraid. I will consider making those changes for 1.2, but when I wrote this initially (over a year ago!) I seem to remember there being a reason for not including the ‘in-built’ post types (but not what that reason might be)

    So I’ll have another look it. If you’re on GitHub and want to make a pull request, please do: https://github.com/stephenharris/WordPress-Post-Type-Archive-Links

Viewing 1 replies (of 1 total)
  • The topic ‘Thanks and a small addition :)’ is closed to new replies.