Category: Other Internet Hosted Applications

  • Sending data from php to javacript in WordPress

    It is often useful to send data from PHP to Javascript and WordPress gives you a method. You can use the localise script function to send data from php to javascript in WordPress coding e.g. $params = array ( “imageurl” => plugins_url(‘images/’, __FILE__), “post_id” => get_the_id(), ); wp_localize_script( ‘myScript’, ‘myparams’, $params ); and access it…

  • How to find out what theme you are using in WordPress

    Finding what theme is useful in some wordpress functions, if you are creating a bespoke system based on wordpress [php] $obj=wp_get_theme(); [/php] gets an aobject [php] $obj->template [/php] is the directory name that the theme is installed in

  • When working out what is going on in WordPress

      it is sometimes useful to be able to see what globals exist. This snippet of code shows globals and excludes a couple of the big wordpress objects that probably are not of any use [php] foreach ($GLOBALS as $key => $value) { if (($key!=’GLOBALS’) && ($key!=’wp_object_cache’) && ($key!=’wp_filter’)){ if ((!is_object($value)) && (!is_array($value))) { echo…

  • Moving WordPress Server

    This is really just a quick note. Much can be found on WordPress codex describing the steps when moving server, but this one caught me out. I decided that I would move all my wordpress sites off my shared hosting reseller account to a VPS (Virtual Private Server). As I had paid for WHM/Cpanel, it…

  • This site is proudly powered by WPMU DEV

    WordPress is great and Multi site is even better, if you want a network of blogs. WPMU Dev gives you a low cost way to build a multisite wordpress installation with all the features you need to create you own fully monetised (or free) blog network. It is no surprise that WPMU Dev  is celebrating…

  • Ozh’ Admin Drop Down Menu – CSS fix for WordPress 3.2.2

    Ozh’ Admin Drop Down Menu plugin for wordpress is a great plugin which give you a top menu version for admin navigation. See http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/ However whilst implementing in WordPress 3.2.2  I found an issue with the ability to hide the original wordpress top menu. A fetaure that was previously working. I worked out these CSS changes…