Querying custom fields with Carrington mobile theme

$post should be a post ID (so $post->ID if you’ve got the global $post object in scope) the function call parameters are: $id: the id of the post (integer) $keyname: a string containing the name of the custom field $single: boolean – true means return a string for the first value, false means an array … Read more

Javascript Solution Remove Specific Tag but leave the rest in a specific DIV

<script type=”text/javascript”> function removeLink() { theAs = document.getElementById(‘lg_image’).childNodes; // get all children of div#lg_image for( i = 0; i < theAs.length; i++ ) { // loop through the children if( theAs[i].nodeType != 3 ) { // if the child is not a whitespace, theImg = theAs[i].innerHTML; // it is the a which contains the img, … Read more

How Do I Use A Custom Mobile Theme?

This depends on the theme in question, Some themes have a desktop and mobile versions built in. Some themes are made to fit the screen size (responsive). Some themes (for mobile) come as a plugin which activates it self when the user access the site from a mobile device. So In the either way its … Read more

same wordpress, 2 domains

There are two options to run multiple sites from one installation: Use multi-site with a subdomain setup. You can use completely different domains then. Adjust the site URL depending on the currently requested host.

Mobile User Registration

New users CAN be allowed to register remotely without setting “anyone can register” in “general/settings”. The client is android and in addition to the android java client code using the ‘org.xmlrpc library’, the following was added to ‘functions.php’ in the child theme: function xml_add_method( $methods ) { $methods[‘xxx.wp_create_user’] = ‘xxx_wp_create_user’; return $methods; } add_filter( ‘xmlrpc_methods’, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)