I am attempting to redirect a wordpress user instantly if they are logged in and if they are NOT on a specific page ie with page numbers 1524 1553 and 301. I have successfully written the code and placed this in the header: <?php // check if user is logged in or not logged in and on pages 301 1524 or 1553 if (!is_user_logged_in() && !is_page('301') && !is_page('1524') && !is_page('1553')) { Script for redirect with class needed here! } else ?> However I want to place something to redirect on page load, could be php could be html but I want it to use a class on the url as if the user clicked on a link <a href="link/to/page" class="classrequired">Link</a> Is there a way to do this? The reason being is that I have a plugin that requires the class to be added to the link in order to open the popup associated with the said plugin! I cant find info on this anywhere? I cant see where to pass the class variable in the Meta Refresh coding! How do I do this without placing a link for the user to click on!!! Many thanks