Thanks and a small addition :)
-
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 ??
https://www.ads-software.com/extend/plugins/post-type-archive-links/
- The topic ‘Thanks and a small addition :)’ is closed to new replies.