Opinions and recommendations on the best barebones base theme [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for … Read more

How to change the default registration email ? (plugin and/or non-plugin)

After a new user registration, WP sends out an email with the login / password, and a link to the login page. Is there a way to change this defaut email template? I’d also like to change the subject and sender. Edit : For anyone interested, here is a plugin solution. 3 The new user … Read more

How to create custom URL routes?

I have a very peculiar requirement, hopefully, I can explain it without being too confusing. I created a page template where I list some properties I get from an external XML file, so far no problems, let’s say the URL is like this: http://www.example.com/properties/ Each property has a link that should redirect the user to … Read more

Get name of the current template file

I’ve found this to display the current name of the file used in template: function get_template_name () { foreach ( debug_backtrace() as $called_file ) { foreach ( $called_file as $index ) { if ( !is_array($index[0]) AND strstr($index[0],’/themes/’) AND !strstr($index[0],’footer.php’) ) { $template_file = $index[0] ; } } } $template_contents = file_get_contents($template_file) ; preg_match_all(“Template Name:(.*)\n)siU”,$template_contents,$template_name); $template_name … Read more