Jump to content

deanMKD

New Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by deanMKD

  1. Dont exist other sollution then this to create a templates for that? im searching for easy sollution. Some iframe or something like that.
  2. The problem is that i dont know how to do that.. Can you help me how to make work this?
  3. Yes post is the same as blog post ! i simply want to grab data from url: $url = "http://webservices.myskillsmyfuture.org/Occupation.svc/occupationsbykeyword/userid/vWmZxue3MavGrMk/keyword/".$keyword."/limit/20 simplexml_load_file($url); and show results in wordpress post/page. thats all. Can you help me to make that code to work, or tell e alternative how to do this?
  4. Hi ! i have hard time to get my php code, that i insert into wordpress site to get work. This is the code that i have inserted into Wordpress post using "Insert PHP" plugin: [button style="btn-primary" url="" size="" block="false" target="_self"] Buscar [/button] [insert_php] $keyword = "doctor"; if( isset($_POST['key']) ) { $keyword = $_POST['key']; echo "nEntered keyword: $keyword"; //print $keyword; if( $keyword == "" ){ echo "Please enter a keyword."; exit; } $url = "http://webservices.myskillsmyfuture.org/Occupation.svc/occupationsbykeyword/userid/vWmZxue3MavGrMk/keyword/".$keyword."/limit/20 simplexml_load_file($url); $json = json_encode($xml); $jsonIterator = new RecursiveIteratorIterator( new RecursiveArrayIterator(json_decode($json, TRUE)), RecursiveIteratorIterator::SELF_FIRST); echo "nn Search Results: nn"; foreach ($jsonIterator as $key => $val) { if($key != "ErrorMessage" && $key != "ErrorNumber") { if(is_array($val)) { // echo "$key:n"; } else { if( $key == "AcinetUrl" ) { $val = "$val"; } echo "$key: $val"; } echo "n"; } } } // This is for 4th URL | Find occupation titles by keyword[/insert_php] This code now work when i press the button inserted via Visual Composer: [button style="btn-primary" url="" size="" block="false" target="_self"] Buscar[/button] How to resolve this? Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.