WordPress.org

Ready to get started?Download WordPress

Forums

Menu not highlighted in custom post type archive pagination (1 post)

  1. TC.K
    Member
    Posted 1 year ago #

    Hi,
    I add a custom post type archive link to the wp_nav_menu to display the corresponding posts. And in the first page of the that archive page, the menu will get highlighted, meaning that the current-menu-item has been added to the menu class.

    But the problems, when I goes to the second page of that archive, the menu stop get highlighted, and when i check on the source file, the current-menu-item was not added to the menu class.

    What is going wrong??

Topic Closed

This topic has been closed to new replies.

About this Topic