Looks like you would need to loop the XML object results, eg:
$comments = array();
foreach ($object->survey as $index => $survey) {
if (is_string($survey->comments)) {$comments[$index] = $survey->comments;}
}
print_r($comments); // to see comments
Related Posts:
- How can I get an XML export of my 1K+ posts WordPress instance?
- How can I export post data in xml format?
- How to limit the content coming from wordpress shortcodes?
- How to properly loop through these external URLs to get them into the sitemap using this hook
- How to make a XML/PHP file returning custom field data from page
- How to split links generated into an xml sitemap to avoid exceeding 30 sec maximum execution time?
- Display image from an external rss feed on wordpress without plugins
- WordPress ajax-action failing because of newline in response
- SOAP Request/Parsing XML From wp_send_json_success
- Add valid XHTML closing img tags to WordPress galleries
- Fetching review value using wpdb class
- Export post data with xml to other site using php soap
- WordPress create custom XML RSS feed template
- Import Instagram post as WordPress post
- How do I get data from my database into my Custom Export Field
- WordPress post insertion from PHP file
- Creating a WordPress addon for ContactForm7 submission (.XML file export)
- How can I export data without using any import/export plugin
- Dynamically Create Posts Via XML File
- Adapting a php array to WordPress
- add conditionals to a displayed external xml feed
- XML WP_Query problem in PHP 8.0 and 8.1
- Read data from external source. XML vs REST API
- Setting custom cookies in WordPress
- Encode text string being appended as query to URL [closed]
- add_filter the_content str_replace after shortcode
- How to check if new posts have been published since page load?
- Permanently remove first image from posts
- Change the footer text on the login page
- WordPress as a backend only. How to output database content on public side without WordPress?
- How do I create a WP user outside of WordPress and auto login?
- WordPress will not operate correctly
- Update WordPress Custom Field with AJAX on cached page
- Post from one loop in different containers?
- How to run multiple websites from single WordPress setup
- WordPress doesn’t include css
- Create an array from an array
- How to add Shortcode (font awesome) in widget title?
- Continue execution after WP REST API response
- WordPress Ajax Custom Query – High CPU LOAD
- Does WordPress need the eval function?
- Returning a value from a PHP page
- PHP Date display as time ago
- Where would I place `wp_footer();`?
- Strip characters, Including spaces, for tel: link
- Can’t get page content in WordPress
- How can I add multiple ‘tax_query’ arrays via a loop?
- How to call plugin function per site in a multisite?
- How to remove ?wp-mce-4103-20162941
- How to Internationalize WordPress – Extract strings with textdomains, per textdomain individually
- How to make own crop image function for WordPress plugin
- 404 error when I acess the second page of post-type
- Where can I create a normal php file?
- Trying do build a contact form
- How to Disable WordPress Page Revisions?
- Prev/Next Links Broken on Static Front Page Pagination
- How to integrate noimage picture in this code
- Site downloads files instead of loading them
- Saving data from custom form in wordpress database
- How to add no follow to specific links?
- WordPress transient not working with WP Engine
- Basic wpdb update question
- Logout redirects to default page
- Remove conditional tag from header
- WordPress upload file size error even after raising php limits
- Multidimensional Array
- Disable Content Editor for Specific Pages
- Php code error in wordpress if else statements [closed]
- Get the list of post categories
- Wrap title and excerpt in a div (latest posts block)
- How to access all meta data for RSS feed?
- Why Is Number of views on wordpress single post wrong?
- Change extension to .jpg when webp is not supported
- How do I Populate a Table Field with User Meta Data?
- add another variable to php function
- How to remove get_header From all single pages in wordpress with functions.php without plugin?
- How do I select two meta_value by $ wpdb-> get_row mode?
- Exclude category from woocommerce product category list
- Send POST request to Flask app from functions.php file
- How to use a variable (for wordpress postid) in other queries?
- How to let mobile navigation menu close when link is clicked?
- Remove generated category and tag class names from woocommerce product & blog listings markup
- Encoding video without exec function
- wordpress method GET adress bar rewrite
- wordpress query returning unexpected results
- Show products per shortcode
- Update user_email via php – WP 4.7
- Calling PHP function doesn’t work in index.php
- Add post class in custom loop (WP_QUERY)
- Revision History for Entire WordPress Site
- magic-quotes – breaks admin totally
- why is this content-template not showing any of my blog-entries?
- How to get the count for each taxonomy term
- Is it possible to display conditional HTML based on page name in wordpress?
- MySQL update text field with ‘
- New to wordpress. Need Help with templates [closed]
- Issues trying to add a href statment with PHP into a PHP Echo Statement [closed]
- How to conditionally concatenate and translate two very long strings?
- Registering a custom block style
- Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english