wordpress loop giving me content

There are 3 main issues here 1. The $content variable This variable is first seen here: $content .=get_the_title(); But it seems to have been plucked out of thin air! Computers need to be told explicitly what to do, and there’s no you know what I mean. You have to tell it about things before you … Read more

SimpleXML is not working with xml response from external api

And according to your output SimpleXMLElement Object ( [Inventory] => SimpleXMLElement Object ( [Product] => TestProduct [ProductInventories] => SimpleXMLElement Object ( [ProductInventory] => SimpleXMLElement Object ( [Site] => 101 [QuantityInStock] => 238.00000 [QuantityHardAllocated] => 0.00000 [QuantitySoftAllocated] => 0.00000 ) ) ) ) You have to access your variable inside object parsed from this XML as: … Read more

Custom Formdata matching with user table

Your conditional check is the wrong way around, it should be > not <. But more importantly, why are you doing a raw SQL query at all, just use the standard functions, e.g. get_user_by: $user = get_user_by( ’email’, $email ); if ( !$user ) { // there is no user with that email } Also, … Read more