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
- Hide php Notices in Dashboard
- Using Echo in ShortCode – Stuck
- Two posts in same div – WP loop
- Compare two meta key values against each other inside the get_posts array?
- WordPress menu deletes when trying to add a hook
- How to show only a certain part of the entry title?
- Programmatically add and remove woocommerce product category
- Get image’s size name from it’s dimension
- If Query In Sidebar
- wp_enqueue_scripts leads to error
- How create a Shortcode with hover and complex options
- WordPress SQL injection
- How can I display a div ONLY if it is not a certain term page
- how to serialize() mysql update data
- Output: “Array”
- Calculate days between two custom field value dates
- How to make a cookie be on the whole site instead of being on a specific page/
- Deleting records with AJAX, deleting records as I search
- How a HTML form can trigger a PHP function?
- Custom Login page, redirection and restrictions
- Passing Current User ID into SQL statement
- Load WordPress core but with specific plugins
- How to output values from a loop into a javascript array
- custom post type column countdown
- Add missing alt tag to featured images for “storefront” theme
- Clone the “proceed to cart” button and place it above checkout on the cart page, but only appear display size is 320px
- Load admin bar without wp_head or wp_footer [duplicate]
- Latest Post Thumbnail Alt Text Missing
- Processing forms with php to wordpress database
- How to connect database table to each registered wordpress user.
- Simple tree display of WordPress menu
- Properly process a custom WP REST API request (Authenticate, Authorize + Validate)?
- Losing Session ID and sessionStorage when navigating to other domains on Multisite
- Contact form with dynamic dropdown and filter
- Import js variables loaded via wp_localize_script() into js module without global scope connection
- Custom taxonomy with page post type – WordPress
- Alternative to php echo within code
- Add multiple HTML attributes to an Elementor button
- Customize the summary table of an order in the email
- Query posts by custom taxonomy slug in WP REST API?
- oneOf JSON Schema validation not properly working for custom post meta value?
- How to add Paragraph Tags in WordPress using Visual Composer?
- PHP – Multiple variables in insert post array
- advanced custom fields: repeater field within conditional statement [closed]
- please on skin.php on theme wordpress option fix on theme option to not print empty variables and empty
- How to cut a section of a URL from a string with a regular expression?
- Too few arguments at registering new templates in my plugin
- inner-wrap div pushing custom table far down on page
- Remove Woocommerce product from cart with ajax/fetch
- Automatically change insurance quantity based on cart total [closed]
- I want to lists posts in wordpress to nearest location entered by the user
- There’s a 0 adding to the value on multiple post type
- Add/alter image attribute before render
- How do I do so that people can register on my wordpress site?
- Custom taxonomy pagination shows 404
- Why does WordPress not send the user the email to add a password?
- How to put a class in the p tag automatically added by the_content() in the wordpress loop?
- How to sort custom sortable column by custom table value
- How to disable page create for custom post type, but allow a page with the post types slug to be created?
- WooCommerce Modal Fly cart on add to cart – With AJAX
- /page/2/ redirect to 404
- How can I trim /page/ URL with PHP in WordPress
- Adding date and time to the same request
- Search custom post type posts only by meta fields?
- How to pass value to add_filter wpcf7_form_tag from another function?
- Custom nav with bootstrap dropdown
- Limit a search box by CPT + taxonomies, in only one page
- How to edit a widget code?
- Hide ‘Downloadable’ and ‘Virtual’ checkbox options from Woocommerce Variations?
- footer doesn’t display
- hiddenQuestions.find is not a function
- How can I improve and optimise my wordpress web server for better performance in 2023
- Internal server error when enabling Multisite in WordPress
- duplicating page templates
- Upload multiple files via ajax from an HTML file input
- How to pass javascript var to php var
- running an existing WordPress site from Visual Studio Code?
- get_post_meta returns on side but it doesn’t return on bottom of admin page