[How to] Test Current Page in WordPress Using Page Slug
WPAssist / Theme Development - April 8, 2020While designing custom navigations, custom page templates, custom sidebar elements you may need to test current page. Here is a simple trick for getting current page.