Tuts Insider
Forum Replies Created
-
Hey @gappiah, I really am thankful to you for this. It really worked like a charm and did the job. But I don’t know why it happened as what is the difference between the two locations??? Kindly tell me if you know about this behavior. Anyways, really thankful to you.
First of all, I am using my own developed theme. Secondly, I not meddling with the core files, I was just checking and tracing the error associated with the wp_nav_menu(). I have added the code for wp_nav_menu() in the comment.
Now, the situation is this, the navigation is working perfectly fine on all other pages, except for the search page.
Also, I am using the below code to generate my site navigation.
wp_nav_menu( array( 'menu' => 'footer-menu', 'theme_location' => 'footer_menu', 'menu_id' => 'footerMenu', 'fallback_cb' => 'false', ) );
Hi Corey,
Firstly, I am not a big fan of block editor, so it is not in discussion. I am using the classic editor for WordPress and I mostly type my WordPress posts using HTML markup. So I have to preview again and again. I just want to know whether there is any way to include a section below the text editor to view the output of the post content?Forum: Developing with WordPress
In reply to: Adding current-menu-item to custom post type single pageHi, i had the same problem previously on TutsInsider(Under dev). I tried all the ways and solutions listed on this page wp_nav_menu( array $args = array() ) but none of them worked for the custom post type.
So, i dont think that current-menu-item will highlight your active custom post type page or taxonomy.
Also, if you do find any solution, do tell me.