stephenh1988/WordPress-Post-Type-Archive-Links — pull request #4 by JvanderHeide (2013-03-07 01:50:24+00:00)
Title: Now able to access both builtin and custom posttypes

As I've previously mentioned on WP forums:

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 :)