Title: divya96's Replies | WordPress.org

---

# divya96

  [  ](https://wordpress.org/support/users/divya96/)

 *   [Profile](https://wordpress.org/support/users/divya96/)
 *   [Topics Started](https://wordpress.org/support/users/divya96/topics/)
 *   [Replies Created](https://wordpress.org/support/users/divya96/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/divya96/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/divya96/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/divya96/engagements/)
 *   [Favorites](https://wordpress.org/support/users/divya96/favorites/)

 Search replies:

## Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)

 *   Forum: [WordPress Mobile App](https://wordpress.org/support/forum/mobile/)
   
   In reply to: [ssue with WordPress REST API: Posts Not Visible in Mobile App](https://wordpress.org/support/topic/ssue-with-wordpress-rest-api-posts-not-visible-in-mobile-app/)
 *  Thread Starter [divya96](https://wordpress.org/support/users/divya96/)
 * (@divya96)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/ssue-with-wordpress-rest-api-posts-not-visible-in-mobile-app/#post-17502901)
 * Thanks to your help, the issue has been fixed!
 * Here’s the updated code.
 * 
   Display Recent WordPress Posts
 *     ```wp-block-code
       <script>
           const apiUrl = 'https://creativeedu.in/wp-json/wp/v2/posts?per_page=4&_embed';
           const postsContainer = document.getElementById('posts-container');
   
           async function fetchAndDisplayRecentPosts() {
               try {
                   const response = await fetch(apiUrl);
                   if (!response.ok) {
                       throw new Error('Failed to fetch posts');
                   }
                   const posts = await response.json();
   
                   // Loop through the recent posts and create HTML elements
                   posts.forEach(post => {
                       const postElement = document.createElement('div');
   
                       const title = document.createElement('h2');
                       title.textContent = post.title.rendered;
                       postElement.appendChild(title);
   
                       const content = document.createElement('p');
                       content.textContent = post.content.rendered;
                       postElement.appendChild(content);
   
                       // Check if featured media is available
                       if (post._embedded && post._embedded['wp:featuredmedia'] && post._embedded['wp:featuredmedia'][0].source_url) {
                           const image = document.createElement('img');
                           image.src = post._embedded['wp:featuredmedia'][0].source_url;
                           image.alt = post.title.rendered;
                           postElement.appendChild(image);
                       }
   
                       postsContainer.appendChild(postElement);
                   });
               } catch (error) {
                   console.error('Error fetching or displaying posts:', error);
               }
           }
   
           fetchAndDisplayRecentPosts();
       </script>
       ```
   
 *   Forum: [WordPress Mobile App](https://wordpress.org/support/forum/mobile/)
   
   In reply to: [ssue with WordPress REST API: Posts Not Visible in Mobile App](https://wordpress.org/support/topic/ssue-with-wordpress-rest-api-posts-not-visible-in-mobile-app/)
 *  Thread Starter [divya96](https://wordpress.org/support/users/divya96/)
 * (@divya96)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/ssue-with-wordpress-rest-api-posts-not-visible-in-mobile-app/#post-17497442)
 * 
   Display Recent WordPress PostsWe are using this code
 *     ```wp-block-code
       <script>
           // URL of your WordPress site's REST API endpoint for posts
           const apiUrl = 'https://creativeedu.in/wp-json/wp/v2/posts?per_page=4&_embed';
   
           // Element where you want to display the posts
           const postsContainer = document.getElementById('posts-container');
   
           // Function to fetch and display recent WordPress posts
           async function fetchAndDisplayRecentPosts() {
               try {
                   const response = await fetch(apiUrl);
                   const posts = await response.json();
   
                   // Loop through the recent posts and create HTML elements
                   posts.forEach(post => {
                       const postElement = document.createElement('div');
                       postElement.innerHTML = `
                           <h2>${post.title.rendered}</h2>
                           <p>${post.content.rendered}</p>
                           <img src="${post._embedded['wp:featuredmedia'][0].source_url}" alt="${post.title.rendered}" />
                       `;
                       postsContainer.appendChild(postElement);
                   });
               } catch (error) {
                   console.error('Error fetching posts:', error);
               }
           }
   
           // Call the function to fetch and display recent posts
           fetchAndDisplayRecentPosts();
       </script>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Wocommerce mobile app issue](https://wordpress.org/support/topic/wocommerce-mobile-app-issue/)
 *  Thread Starter [divya96](https://wordpress.org/support/users/divya96/)
 * (@divya96)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/wocommerce-mobile-app-issue/#post-17445487)
 * Yes.. checked, jetpack connected properly and it is active.. what may be the 
   problem?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Wocommerce mobile app issue](https://wordpress.org/support/topic/wocommerce-mobile-app-issue/)
 *  Thread Starter [divya96](https://wordpress.org/support/users/divya96/)
 * (@divya96)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/wocommerce-mobile-app-issue/#post-17444538)
 * Here is the site url.. 
   [https://wealthynutra.com/](https://wealthynutra.com/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] search related issue in polylang](https://wordpress.org/support/topic/search-related-issue-in-polylang/)
 *  Thread Starter [divya96](https://wordpress.org/support/users/divya96/)
 * (@divya96)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/search-related-issue-in-polylang/#post-17292121)
 * Please advice how to fix this issue ??
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Nextend Social Login and Register] Issue with facebook Configuration](https://wordpress.org/support/topic/issue-with-facebook-configuration/)
 *  Thread Starter [divya96](https://wordpress.org/support/users/divya96/)
 * (@divya96)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/issue-with-facebook-configuration/#post-16740743)
 * Thank you so much for your quick response.. It’s working fine now..
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Nextend Social Login and Register] Issue with facebook Configuration](https://wordpress.org/support/topic/issue-with-facebook-configuration/)
 *  Thread Starter [divya96](https://wordpress.org/support/users/divya96/)
 * (@divya96)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/issue-with-facebook-configuration/#post-16740375)
 * Hi,
 * Now FB verification is in verified status..
 * [https://prnt.sc/gnBrbnzmSUrD](https://prnt.sc/gnBrbnzmSUrD)
 * But still we have the issue **URL Blocked**.. As suggested in document.. **nextend**
   plugin not suggesting any OAuth URI… Please help me with the same..
 * [https://prnt.sc/2zA8jTBReeH0](https://prnt.sc/2zA8jTBReeH0)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Nextend Social Login and Register] Issue with facebook Configuration](https://wordpress.org/support/topic/issue-with-facebook-configuration/)
 *  Thread Starter [divya96](https://wordpress.org/support/users/divya96/)
 * (@divya96)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/issue-with-facebook-configuration/#post-16731498)
 * We have filled all the details.. Still not sure what is the mistake.. Please 
   refer the following screenshot link..
 * [https://prnt.sc/X7bRM45tvHWx](https://prnt.sc/X7bRM45tvHWx)
 * [https://prnt.sc/emWkViBOYAlP](https://prnt.sc/emWkViBOYAlP)
 * Business Review is in pending.. Do you think this might be the reason ?
 * [https://prnt.sc/UVkH3eKxewuQ](https://prnt.sc/UVkH3eKxewuQ)

Viewing 8 replies - 1 through 8 (of 8 total)