You can get the comments by checking:
https://site/wp-json/wp/v2/comments?post=150
Where post=150
, is the ID of the post.
I don’t really know what do you mean by likes
, but there are not likes
WordPressPres natively.
Related Posts:
- Nonce retrieved from the REST API is invalid and different from nonce generated in wp_localize_script
- REST API: Backbone and custom endpoint
- Gutenberg custom block plugin with custom image sizes
- Get loading state of wp data selector
- WP REST – video and audio players
- Headless WordPress: How to authenticate front end requests?
- Post to WordPress using REST API from external site
- How to handle malformed response from WP REST API?
- Rest API authentication issue when called from fetch request in bundle.js
- Get HTTP response code on non-2xx apiFetch request
- Rest API invalid nonce with Backbone Client
- WP REST API Post Status Using JavaScript
- How to transform a legacy widget into a block
- Authentication with the Rest API when using an External Application
- Get Block Attributes in JSON REST API
- Setting/unsetting terms using the Backbone JavaScript client
- Checks when fetching data from multiple REST API endpoints in Gutenberg
- Search for a keyword across post types in a Gutenberg component
- Using apiFetch for retrieving post data in Gutenberg
- Get terms of a taxonomy using useSelect
- Return ‘X-WP-Total’ from headers in response
- How to render WP Rest-API Endpoints in a React.js Theme with Woocommerce
- how to use nimble-API and Display data?
- Check if user can in javascript
- wp-api Backbone JS Client fetch options
- Why does my array sort order changes when I pass it to JS using WP_REST_Response?
- Rest API and how to deal with it in server side
- Access checks with custom REST endpoints and backbone
- [Vue warn]: Error in render: “TypeError: Cannot read property ‘wp:featuredmedia’ of undefined – REST API
- Update block once an API request returns with a value
- Get user in rest API endpoint
- How to improve WP-Rest atrocious response time?
- I would like to retrive JSON value and display it in wordpress page or widget
- Connecting a wordpress site to an AngularJS APP
- WordPress REST API response is empty in browser and script, but not in Postman
- WP REST API – “rest_user_cannot_view” ONLY on specific users
- Get Comment Text via REST API
- Google Chrome Uncaught (in promise) DOMException while playing AUDIO
- jQuery append() vs appendChild()
- ChartJS beginAtZero, min, max doesn’t work
- how to fix : ” TypeError: Cannot read property ‘addEventListener’ of null”…?//
- ReferenceError: $ is not defined
- React.js: Set innerHTML vs dangerouslySetInnerHTML
- How to loop through an array containing objects and access their properties
- Axios Delete request with body and headers?
- How can I convert a string to boolean in JavaScript?
- React Hook Warnings for async function in useEffect: useEffect function must return a cleanup function or nothing
- Change Background color (css property) using Jquery
- jQuery get textarea text
- Base64 encoding and decoding in client-side Javascript
- Response to preflight request doesn’t pass access control check
- How can I check for an empty/undefined/null string in JavaScript?
- display variable image using cookies
- Find an element in DOM based on an attribute value
- character counter – backspace doesn’t reflect on characters remaining
- Pass a JavaScript function as parameter
- Cannot read property ‘getContext’ of null, using canvas
- How to add multiple classes to a ReactJS Component?
- Make Axios send cookies in its requests automatically
- JSON.parse() not working
- Call python function from JS
- How to add onload event to a div element
- How to get the ASCII value in JavaScript for the characters [duplicate]
- HTML img onclick Javascript
- Clear the cache in JavaScript
- error Unable to get property ‘display’ of undefined or null reference
- Is there a php echo/print equivalent in javascript
- navigator.geolocation.getCurrentPosition sometimes works sometimes doesn’t
- Expected ‘this’ to be used by class method
- Strip HTML from Text JavaScript
- ngular is automatically adding ‘ng-invalid’ class on ‘required’ fields
- How to set “style=display:none;” using jQuery’s attr method?
- Await is a reserved word error inside async function
- Show only images and videos in a wp.media window
- Instantiate TinyMCE via JS ( rather than PHP/wp_editor )
- Prevent escaping javascript in visual editor
- JavaScript in WordPress Customizer
- @wordpress/components Button variants not styled
- Only displaying zip files with wp media
- Button insert link on front wp_editor not working
- How Can I Add OnClick Event To A Specific WordPress Menu Link
- Adding a Javascript slideshow to the home page
- Screen Resolution Detect
- Is it possible to pass js variable to template file
- Automatically Add Defer or ASYNC to all JS files (no matter where they are located)
- How to generate the COOKIEHASH from JavaScript
- Gutenberg Blocks: how to determine an index of the current inner block?
- find out reason of “Updating failed” in Post-editor
- Inherit scripts from parent to childtheme
- WordPress wp_enqueue_script only adds text to top of page source
- I want to make a post api call once a post or page is published/updated and show a javascript alert box saying ‘Post has been published/updated’
- Add a Page Screen is Visually Blank
- Debugging JS errors
- “jQuery Not Defined” Error When Connecting to PayPal
- Fade-in Fade-out doesn’t work in WordPress
- wp_enqueue_scripts doesn’t work for template pages
- WOW.js Script Tag Initialization Header/Footer
- Making the HTML list to a checkbox tree with the plugin jstree [closed]
- How to load JavaScript modules with script_loader_tag hook?
- How to securely set dynamic HTML content with JavaScript?