WordPress REST API – JSON “Rendered” Content Incorrect
The content that you are referring to is coming from the Elegant Themes Page Builder plugin on that site.
The page builder uses WordPress Shortcodes to render the content on the WordPress site. However, when you use the REST API, the content is pulled from the WordPress database and the shortcodes are not processed/rendered first.
You would need to remove the shortcodes from the returned JSON before it is displayed in your app. You could use something like this to remove the shortcodes before displaying your content in the app:
// Remove Divi/ET Page Builder shortcodes
$content = preg_replace('/\[\/?et_pb.*?\]/', '', $content);
Related Posts:
- How to make search and replace in content through php
- Is there a way to show only the text editor
- preg_replace style attr in $content and Editing post_content before saving
- Retrieve content of page by URL Parameter
- WP Rest API: details of latest post including featured media url in one request?
- Best practices for localizing WordPress content?
- WP REST API only returning partial list of users
- WP JSON REST API (Ryan McCue) how to query posts with specific meta data with ‘AND’ relation?
- What’s the Best Way to Structure a Multi-Content Blog?
- How to Handle Distributed Development Workflow
- How can I clear oEmbed caches for YouTube on posts as they are loaded
- Recommended Books on WordPress for Management and non-Developers?
- Total word count for posts by one author
- How do I make certain areas editable?
- How to: Rest endpoint returning empty object
- append_content help
- Is there a way to trigger an automatic import of a WP backup on creation of a new WP multisite site?
- Create a new user using WP REST API and declare meta object
- Site content not showing
- How to just show first line of content
- Android authentication
- WP REST API route request explain
- Add Category Name to REST API
- Disable REST API for a user ROLE
- Display sub-taxonomies based on SELECTED parent-taxonomy
- Change Content for Specific Page
- WordPress REST API “rest_authentication_errors” doesn’t work external queries?
- Get all post media images via WP REST API
- Can’t GET draft posts via REST API from headless frontend
- Formating content rendered from wordpress REST API as JSON and not HTML
- Passing Meta array in wp-rest api
- Keep user’s privileges on accessing contents in JSON response
- Inserting custom post meta value using WP-REST API
- How can I cache WordPress Rest API Response
- WP REST API format response
- Output string using php printf
- content gets scrambled
- Why does AWStats show /wp-json* as Viewed URLs
- Why aren’t tags and categories added in post request to WP Rest API
- How to order WordPress Rest API data
- REST : how do you handle the rest_no_route error?
- WP Rest API – How to convert embedded to json object in Java [closed]
- featured image not found in json from wp rest api
- How to have a “clean” post content, for excerpt and social networks sharing
- How to make author box like this & add after every post?
- Querying A Post That Includes Two Taxonomies Using JSON Rest API
- How to create a post using REST API with sending data as a JSON body?
- Custom endpoint to get all custom taxonomy terms
- How to retrieve text only from a post using WP CLI?
- Images are searched in the wrong path
- Loop Performance > JSON files vs. WP_Query vs. REST API
- Export + Import = wrongly duplicated content
- REST API: Display Category names in JSON?
- the_excerpt() in content.php and get_template_part() in single.php
- Content not shown on some older browsers and mobile devices (SGS3)
- Include results with tags relevant to the search keyword with JSON rest API v2
- How to connect android app with WordPress website?
- Page content not visible in backend
- Delete/Replace words from X to Y in post content
- Body-only page for a 2-page form [closed]
- How to clone all WordPress Rest API end points
- Divide post content in three columns
- Simple Math Quiz or Captcha to hide whois query form
- qTranslate 2.5.28 and WordPress 3.3.1 issues [closed]
- How to show content for posts of a specific category only
- What is the best practice to localize content? (Geographic not langauge)
- Disable and Hide WP-JSON
- WordPress REST API not working on localhost
- Create multiple pages with tables from json file
- Get html from custom route api
- how to create JSON array [] for REST response?
- WP Rest API in Android studio does not show Images
- What’s the right way to validate JSON data coming from an AJAX POST request?
- Images over HTTPS endless issues – mixed content
- How to receive JSON payload from a digital device
- WordPress API “code”:”rest_no_route” with Custom Route
- WordPress output data to another website and pull data
- Consult array data in REST API Filter
- Need help with invisible content block
- I would like to retrive JSON value and display it in wordpress page or widget
- How to get the list of posts with empty content
- Why does “if statement” has to “die()”, otherwise wont work?
- How to create REST Based JSON API(how to modify the code below)?
- Best way to make a JSON API from WordPress?
- The post content just showing up text
- Need help for showing same front content page, search page and portfolio post page
- Add video tag to youtube link fron content
- How to embed PDF files inside content without media_send_to_editor?
- Update content on the fly
- Visual Editor not working for user on multiple computers
- Migrate bbpress content to posts
- Built-in Method to Extract Embedded Video from Content
- Best way to modify content from index.php to single.php?
- WordPress REST API not displaying all information
- How can you find and replace text in wordpress files on localhost xampp folders?
- Custom WP Rest API Endpoints from JSON Schema
- Import Content into New Avada Live (Fusion Builder) Page
- Custom rest api endpoint response json problem
- Custom Taxonomy in custom REST API search
- Elementor article preview picture have different size