<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Muhammad Ali</title>
    <description>The latest articles on DEV Community by Muhammad Ali (@muhammad_ali121).</description>
    <link>https://dev.to/muhammad_ali121</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1210236%2Febbf6f34-abd3-4344-b4ae-38f36b4a2b92.jpg</url>
      <title>DEV Community: Muhammad Ali</title>
      <link>https://dev.to/muhammad_ali121</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/muhammad_ali121"/>
    <language>en</language>
    <item>
      <title>How can I format WPgetAPI Plugin Output in WordPress to display data in a table instead of JSON format?</title>
      <dc:creator>Muhammad Ali</dc:creator>
      <pubDate>Wed, 15 Nov 2023 07:19:36 +0000</pubDate>
      <link>https://dev.to/muhammad_ali121/how-can-i-format-wpgetapi-plugin-output-in-wordpress-to-display-data-in-a-table-instead-of-json-format-2g1p</link>
      <guid>https://dev.to/muhammad_ali121/how-can-i-format-wpgetapi-plugin-output-in-wordpress-to-display-data-in-a-table-instead-of-json-format-2g1p</guid>
      <description>&lt;p&gt;&lt;strong&gt;Details:&lt;/strong&gt;&lt;br&gt;
I have a WordPress website where I'm using the "WPgetAPI" plugin to connect to Rapid API and display data on my pages. The plugin provides a short code to display the data, but it's currently showing up in JSON format. I'm looking for a way to format the data into a table on my website.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
Here's the code snippet I'm currently using:&lt;/p&gt;

&lt;p&gt;&amp;lt;?php&lt;/p&gt;

&lt;p&gt;$data = wpgetapi_endpoint( 'ott_details', 'ott_details', array('debug' =&amp;gt; false) );&lt;/p&gt;

&lt;p&gt;var_dump($data);&lt;/p&gt;

&lt;p&gt;echo $data['title']&lt;br&gt;
?&amp;gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Issue:&lt;/strong&gt;&lt;br&gt;
Despite my efforts, the data is still displaying in JSON format, and I can't figure out how to get it to display in a table.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Environment:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;WordPress version: [6.4.1]&lt;br&gt;
WPgetAPI plugin version: [2.2.3]&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Attempts to Solve:&lt;/strong&gt;&lt;br&gt;
I've checked the WPgetAPI and Rapid API documentation without finding a solution. I've also tried tweaking the PHP code, but with no success.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Expected Outcome:&lt;/strong&gt;&lt;br&gt;
I expect the data to be displayed in a table on my website, showing specific fields.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>api</category>
      <category>json</category>
      <category>tableformatting</category>
    </item>
  </channel>
</rss>
