I am using the template_redirect action to redirect a user to a custom template which has no header, sidebar or footer (the intent is for it to be in...
I would like to redirect this page wp-login.php to /login page. So when a user clicks on a link like this <a href="https://wordpress.stackexchange.com/wp-login.php">login</a>, wordpress will redirect him to /register...
I have something like this http://example.com/en , http://example.com/fr and http://example.com/es for example I would like if I’m on this page http://example.com/en/about-us/ when I click on other language link,just to...
I am building a website, with wordpress+buddypress (latest version). In this website, I have my own custom login|signup|resetpass forms, and i do not want to link them to back-end...
I am using WordPress 3.3.1 and new to this system. I want to redirect the search query to the post if query exactly matches post title of some post....
I was wondering which is the correct method to do this and which action hook should i use. I have custom login/register pages so if the user try to...
I have a typical WordPress site, with a typical Search page template set up which uses the typical GET format <form id="searchform" action="http://example.com" method="get"> <input id="s" type="text" name="s" placeholder="Search...
This is an extension of this question/answer. A comment on that question references that template_include is preferred to template_redirect when loading templates from a plug-in. However, hanging this to...
I have two custom post types (e.g. post_type_1 and post_type_2) that I would like to redirect to independent templates (single-post_type_1.php and single-post_type_2.php) to handle their display. I don’t want...
My favorite part of the WordPress template hierarchy is the ability to quickly create template files for pages by slug, without having to edit the page in WordPress to...