WordPress multisite,several different languages,page redirect?

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 redirect to that language,but to stay on same page,for example if I click on link that will go to french site,and I’m currently on http://example.com/en/about-us/, I … Read more

stop redirection on /wp-admin call to /wp-login

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 wp-forms. And I have blocked back-end forms for all users (default wp-login|signup|resetpass forms)(with a 404) So if you try to reach wp-admin/wp-login you will see the … Read more

How do I redirect /search/ to wordpress search template?

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 Again”> </form> For users’ convenience, I’d like to have the following url redirect to the search page template: http://example.com/search/ But since there is no /search page … Read more

template_include (overriding default plugin templates via current theme)

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 template_include is breaking everything on the site (any other page view) except the layouts that using the layout override http://pastebin.com/LWpSrfim but using template_include just prepends content … Read more

Custom Post Types and template_redirect

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 to put the display templates in the theme folder as I want them self-contained in their respective plugin folders. How can I have each of them … Read more

single-{$post_type}-{slug}.php for custom post types

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 select a template. We can currently do this: page-{slug}.php But I would like to be able to do this: single-{post_type}-{slug}.php So that, for example, in a … Read more