Skip to content

Software Development at Program Tom LTD

Place for coding, programming, development and software in general.

Menu
  • Blog
  • PDF Booklets
  • Dev Utils & Content
  • Java Spring Boot Or Web Apps
  • English
    • български
    • English
    • Español
    • Português
    • हिन्दी
    • Русский
    • Deutsch
    • Français
    • Italiano
    • العربية
  • About Us
Menu
WordPress JSON Posts

How to read WordPress Posts & show Them with Flutter Web

Posted on January 16, 2021March 23, 2024 by Toma Velev

In this article I’m gonna continue the tutorial of reading the WP JSON API to how you how to read the WordPress Posts and display them in Flutter Web Application. The Information is located on the URL:
https://<wp>/wp-json/wp/v2/posts. It has the following JSON Data Model:

WordPress JSON Posts Model - 1 WordPress JSON Posts Model - 2

The important fields of this complex WordPress Posts array/object – Data Model Object are:

  • id – the ID/Identifier/ of the Article
  • “title” Object containing “rendered” String – that is the title [plain text] of the Article
  • “slug” – the URL friendly version of the title
  • “content” Object containing “rendered” String – that is the HTML of the Article
  • date/date_gmt – the date of creation
  • modified/modified_gmt – the date of last modification
  • link – the URL of the Article
  • author – the ID of the Author
  • “categories” – Array of Integers that are the IDs of the WordPress Categories
  • “tags” – Array Of Integers that are the IDs of the WordPress Tags
  • excerpt Object containing a rendered String – a short introduction of the blog post
  • comment_status: String – are comments on the article allowed.
  • featured_media – the WordPress Media/most probably Image/ that is displayed as logo/picture/ of the blog post.
  • status – the status of the post – draft, published, private or protected with password.

These are the Data Models of a Post/Article. But, they do not stop you to package whatever your imagination can create. The User Interface Labels around the Data Models may different. If User Profile creation is open for – content and product creators – the possible ideas to wrap up are endless. Yes, WordPress (& PHP) may not be the best, fastest in execution nor the most scalable, but it will be fast to bootstrap. Here you have a Flutter Web App Demonstration that loads the articles: https://programtom.com/dev_examples/wp_posts/. Code loading the full WordPress Data may be demonstrated in the future, but it will require the unification of all JSON APIs and Services. Enough for today.

  • Prompt-to-Production: How AI is Forcing Us to Build Higher Quality Software
  • Debug Web View Flutter App
  • Skipping AI? You’re a Relic – Time to Evolve or Perish!
  • 2026 Flutter Launch Blueprint: Your 10-Step Checklist to App Store Domination
  • Product Requirements Document – for different software development levels

Categories

  • Apps (25)
  • ChatGPT (27)
  • Choosing a Framework (38)
  • Flutter (281)
  • Graphical User Interface (14)
  • Marketing (119)
  • Software Development (292)
  • Spring (45)
  • StartUp (22)
  • Uncategorized (14)
  • Uncategorized (4)
  • Vaadin (16)

Tags

Algorithms (9) crypto (29) flutterdev (39) General (86) Java (7) QR & Bar Codes (3) Software Dev Choices (33) Spring Boot (1) standards (1) Theme (3) User Authentication & Authorization (9) User Experience (10) Utilities (19) WordPress (11)

Product categories

  • All Technologies (87)
    • Flutter Apps (26)
    • GPT (4)
    • Java (39)
    • Native Android (3)
    • PHP (9)
    • Spring (Boot) / Quarkus (36)
    • Utils (15)
    • Vaadin 24+ (28)
    • Vaadin 8 (1)
  • Apps (18)
    • Employees DB (1)
    • Notes (6)
    • Personal Budget (1)
    • Recipes Book (1)
    • Stuff Organizer (1)
    • To-Do (2)
  • PDF Books (3)
  • Source Code Generators (8)

Recent Posts

  • Prompt-to-Production: How AI is Forcing Us to Build Higher Quality Software
  • Debug Web View Flutter App
  • Skipping AI? You’re a Relic – Time to Evolve or Perish!
  • 2026 Flutter Launch Blueprint: Your 10-Step Checklist to App Store Domination
  • Product Requirements Document – for different software development levels

Post Categories

  • Apps (25)
  • ChatGPT (27)
  • Choosing a Framework (38)
  • Flutter (281)
  • Graphical User Interface (14)
  • Marketing (119)
  • Software Development (292)
  • Spring (45)
  • StartUp (22)
  • Uncategorized (14)
  • Uncategorized (4)
  • Vaadin (16)