indianabenny
Forum Replies Created
-
You’ll want to look at these functions:
udpate_user_meta: https://codex.www.ads-software.com/Function_Reference/update_user_meta
get_user_meta: https://codex.www.ads-software.com/Function_Reference/get_user_meta
add_user_meta: https://codex.www.ads-software.com/Function_Reference/add_user_metaOne of my developers refactored this to work with 4.x. You can download it from Github here: https://github.com/strickdj/acf-field-address
walduran,
It’s not a widget, but if you can edit your theme files and you can edit the plugin file, you can add a function to allow you to add it to your theme manually. First add the following code to the bottom of the wunderground.php file found in the wunderground plugin folder:
function goWeather() { $goWpUnderground = new wp_wunderground(); $goWeather = $goWpUnderground->build_forecast(); echo $goWeather; }
After you’ve done that, go to your theme file and place the following where you want the weather to show up (the sidebar.php file for example):
<?php if(function_exists('goWeather')) { goWeather(); } ?>
Forum: Plugins
In reply to: [Search & Replace] [Plugin: Search and Replace] memory size fatal error8bitkid,
You probably need to be more specific about what you are searching for. % is normally a wild card in SQL so it’s probably trying to load an excessive amount of data and overwhelming the memory of the server.
Forum: Fixing WordPress
In reply to: Creating a Simple Cookie?I was going nuts trying to set a basic cookie as well with PHP. Finally tried javascript to set the cookie and then I was able to access the info/values via PHP. I used the Set_Cookie function located here to do it:
https://techpatterns.com/downloads/javascript_cookies.phpI hope WP looks at why cookies are impossible to set within the system. It’s extremely annoying not to be able to set a basic cookie using setcookie (a base function in PHP).
Forum: Fixing WordPress
In reply to: ver. 1.5 rss errorsnever mind…. I deleted all the file on the server (not db) and re-installed and it works now.