I am using Custom Post Type and it generates the page for the CPT automatically which is working fine. But there is some discrepancy between the auto generated page and manually created pages. When I am on a page, e.g. /about-us
, the active "About Us" link in the WordPress navigation can be styled independently, because the <li>
of the item gets a class of current-menu-item
added and the <a>
will be marked with aria-current="page"
.
The auto generated page from CPT however does not do this. How I can make it behave correctly?
Thanks in advance and best regards
Fabian