If you set up a global variable in the header you would expect that it would be available everywhere, right? That is the definition of the word ‘global;, right? Well, it doesn’t work like this and the reason is because in WordPress header and footer are called via functions so the variable is only accessible in scope of each function.
One of the solutions is simple – use global variable before the declaration AND before echoing.
For example, add this to
<?php global $var; $var= "something"; ?>
and then in the
footer.php you do this :
<?php global $var; echo $var; ?>
and it will echo the content of your $var variable.
Be advised though that some people say using global variables is not the best practice.
I’m liking Windows 10 but it has a lot of bugs that make it look like it is still a beta software. One of the most annoying bugs is that the volume icon simply disappears (this usually happens to me when windows 10 wakes up from sleep). Even restarting doesn’t always help. Here is a weird solution I found (which is still just temporary solution but it beats restarting). Going to Notifications & Settings then “Turn system icons on and off” doesnt help because Volume option is greyed out.
This is what helped. When the volume icon goes missing do this:
1. Click on search icon (near start menu) and type “display”.
2. Click “Display settings”
3. Change the size of text to 125% and click apply.
4. Do not log out!
5. Change the text size back to 100% and click apply.
6. Now sign out and then sign back in.
For some weird reason the volume icon is back! Hopefully it works for you too. This (setting text size) might mess up your desktop icon alignment a little but it is not really a problem.
I am using Contact Form 7 on one of WP sites and after update (not sure which one) I started getting this error after user submitted the form:
‘Failed to send your message. Please try later or contact administrator by other way.’
As always, lots of way to complicated solutions on the net when, in my case, the solution was simple.
This is what I had before (CF7 admin):
And this is the one that works (I just replaced data in the FROM field):
of course you need to replace domain.com with your domain.
I do not know why did it worked before and why it stopped working but this is how I solved it. Of course you cant just hit reply now because your email is REPLY email. To solve this you can try this :
Contact Form 7 has a field called “Additional headers:”. Enter (literally)
Reply-To: [your-email] and save.
If you want to see all the avatars / photos that your Viber contacts use for avatars (even old ones) then you can find big sized images here (this is only for Windows):
DRIVE:\Users\YOUR WINDOWS PROFILE\AppData\Roaming\ViberPC\YOUR PHONE NUMBER\Avatars
so for example if your drive is C, your windwos profiel is FooUser and your phon is 555-55555 then you can find it here: