• Hello, I have the following problem. I would like to put the traffic information from our national provider on my site. I have already tried various plug-ins, but it didn’t work. I also tried chat GPT, but that doesn’t work either. Would anyone like to help me with it? The script is here, but I can’t get it to appear on the site now

    https://cris-admin.anwb.nl/export-api/v1/pqfeed/latest

    [private information removed by moderator]

    Has anyone a solution

    Regards

    Goos

    The page I need help with: [log in to see the link]

Viewing 9 replies - 31 through 39 (of 39 total)
  • Thread Starter Goos Mante

    (@meganmante)

    still seeing the errors as mentiond above

    Thread Starter Goos Mante

    (@meganmante)

    Hi the traffic compagny changed our api can i send you privat the api

    Thread Starter Goos Mante

    (@meganmante)

    Hi they have changed the api because the ANWB did had to do what changes , i still see the errors on the site
    Can i send you the api personal
    The alignment is ok
    Goos

    Thread Starter Goos Mante

    (@meganmante)

    Can you please adjust the api

    PopRockRadio

    VUtxvZh_7iv9!

    API key: d35516b1-0e21-4867-914c-50f0492a9464`

    Thread Starter Goos Mante

    (@meganmante)

    Hi still recieving errors recieved new key

    d35516b1-0e21-4867-914c-50f0492a9464

    Thread Starter Goos Mante

    (@meganmante)

    how can we indicate in the next line that the road indication is a little more space between what it is now

    Thread Starter Goos Mante

    (@meganmante)

    how can we indicate in the next line that the road indication is a little more space between what it is now the last update it becomes with errors on the website

    Thread Starter Goos Mante

    (@meganmante)

    hi i hope you can help me out one more time , i have set it back to the first plug in because the plug in did sent errors to our website . Can i contact you privatly

    Thread Starter Goos Mante

    (@meganmante)

    Hi i am geting this error to see on mobile and tablets

    [ 'x-api-key' => $api_key ] ]); if (is_wp_error($response)) { return 'Error retrieving traffic data: ' . $response->get_error_message(); } $xml_data = wp_remote_retrieve_body($response); // Check if we have data if (empty($xml_data)) { return 'No data received from the API.'; } // Parse the XML response $xml = simplexml_load_string($xml_data); if (!$xml) { return 'Error parsing traffic data.'; } // Start output buffer to capture HTML content ob_start(); echo '
    '; foreach ($xml->Sections->Section->Messages->Message as $message) { echo '
    '; // Dynamically get and display each field foreach ($message as $key => $value) { // Skip empty fields if (!empty($value)) { echo '' . esc_html($key) . ': ' . esc_html($value) . '
    '; } } echo '
    '; } echo '
    '; // Get buffer contents and clean buffer $output = ob_get_clean(); // Cache the output for future requests set_transient($cache_key, $output, $cache_expiration); return $output; } // Register a shortcode to display the data on any page/post add_shortcode('anwb_traffic_info', 'fetch_and_display_anwb_traffic_info');

    What can we do about it

    Goos

Viewing 9 replies - 31 through 39 (of 39 total)

The topic ‘XML with api to wordpress’ is closed to new replies.