How to restore deleted wordpress site?

You’d need to install a blank WordPress install somewhere…locally or on the domain you want to transfer it to and check the “Discourage search engines” option. Then use WordPress importer to import the content, I assume you only exported all posts and pages? You’ll need to manually set the rest such as Site Name and … Read more

WP – not sending email

wp_mail() uses phpMailer which defaults to localhost so if your development server is not configured as a mail server, the email won’t fly. Use the ‘wp_mail_failed’ action hook to get the WP_Error that’s thrown so you can further troubleshoot the problem.

How to dynamically change webcam photo timestamps

to generate the galerie, you can put this shortcode in the file functions.php of your theme (create a child theme if the theme can be updated) add_shortcode(“webcamPictures”, function ($attr, $content, $tag) { $picturesByLine = 5; $directoryBase = realpath(__DIR__ . “/../../../images”); $urlBase = home_url(“/images”); // reading pictures $picturesRaw = glob(“$directoryBase/{$attr[“type”]}*”); $pictures = []; foreach ($picturesRaw as … Read more

Forward blog requests to another URL

In your root .htaccess: RewriteEngine on RewriteRule ^blog/(.*)$ http://www.newdomainyouknow.com/blog/$1 [R=301,L] OR in your subfolder .htaccess RewriteEngine on RewriteRule ^(.*)$ http://www.newdomainyouknow.com/blog/$1 [R=301,L] You can remove all other entries. But this will move all request from one domain to the new domain : for example http://oldandboringdomain.com/blog/cool-staf will be redirected to http://www.newdomainyouknow.com/blog/cool-staf With 301 redirect (permanent) which mean … Read more