Hi,
I installed a plugin called Sportspress, and it added some custom post types to my WordPress. It seems like when I am on the posts/archives of those new custom post types the mega menu in my navigation does not drop-down. The regular “drop-downs” in the menu work, but not the mega menus.
Here on the homepage (http://dawg.christianinternethosting.com/) if you hover over the “football” menu item you can see the mega menu.
But here on one of the new custom post types (http://dawg.christianinternethosting.com/player/mason-ewing/) if you hover over the “football” menu item nothing drops down.
Why is it that the mega menu doesn’t work on the new custom post types?
Thanks!
Hi,
Mega menu was not designed to work with custom posts, it’s only possible with code modifications, try to modify it here – http://screencast.com/t/tEedREacv7za
If it still doesn’t work i suggest that you hire a professional developer to modify the code for you.
We would have gladly made it for you but for the moment we cannot offer custom work, sorry for this.
Thank you, Emil G.
Hi,
Okay I added this line of code like you suggested right after line 37 on the td_data_source.php:
$wp_query_args = array(
'ignore_sticky_posts' => 1
'post_type' => array('post','sp_player')
);
though adding that just crashes my site. Is there something wrong with that line? I am no good with PHP so I have no idea if that is correct or not. I just copied yours.
Also, how do you get the ID for your custom post type to insert in the “another_custom_post_type” area, as you mentioned in your ScreenShot?
If you could just tell em those things, I am sure I can figure this out. Thanks!
Hi,
You didn’t put comma sign in your code after 1:
$wp_query_args = array(
'ignore_sticky_posts' => 1,
'post_type' => array('post','sp_player')
);
Also I think that you have to link custom posts to the category, maybe use a plugin for that. This is not tested so may not work, we cannot provide an accurate solution for this.
Thanks!