Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

rest-api

Get a term object using getEntityRecords

August 5, 2022 by Magenaut

Given a term ID, how can I fetch the term object by its ID using getEntityRecords?

Categories Q&A, Wordpress Tags block-editor, rest-api Leave a comment

Application passwords not working on localhost?

August 5, 2022 by Magenaut

I have to get following error on the localhost

Categories Q&A, Wordpress Tags errors, rest-api Leave a comment

How to stop a Gutenberg Block from firing multiple GET Requests?

August 5, 2022 by Magenaut

I’ve been building a Gutenberg Block that sends a GET request to the Woocommerce REST API.

Categories Q&A, Wordpress Tags javascript, rest-api, woocommerce-offtopic Leave a comment

Strange behavior: random HTTP error 500 fixed by visiting Permalinks settings page (htaccess issue with language code)

August 5, 2022 by Magenaut

I’ve got a pretty weird behavior on my site that I’d like to resolve.

Categories Q&A, Wordpress Tags 500-internal-error, htaccess, http, permalinks, rest-api Leave a comment

How do I get the site url from a Block (within the block editor)

August 5, 2022 by Magenaut

I have a block in which I’d like to display a link based on the site url. So for example, when the user enters “Futuristic”, the link will display as https://my-site.com/futuristic/

Categories Q&A, Wordpress Tags block-editor, multisite, rest-api, site-url Leave a comment

WP_REST_Response() doesn’t seem to return the expected object

August 5, 2022 by Magenaut

Building on this answer, the WP_REST_Response() object returned by the callback function of my custom route is not the object I’m asking it to return. My object has a “status” of 304 and a “message” field, the object returned has a “status” of 200 and no “message” field. Why?

Categories Q&A, Wordpress Tags rest-api Leave a comment

How to create a post using REST API with sending data as a JSON body?

August 5, 2022 by Magenaut

I am able to create posts on my WordPress website using it’s REST API with the below curl request format. Website uses basic auth plugin for the authentication process.

Categories Q&A, Wordpress Tags curl, json, posts, rest-api Leave a comment

Are there server performance benefits to fetching only specific fields when querying the REST API?

August 5, 2022 by Magenaut

I understand that having less data being downloaded improves the experience to the end user, but my question is related to the actual server performance, would the response be faster?

Categories Q&A, Wordpress Tags rest-api, server-load, wp-api Leave a comment

WordPress REST API V2: how to get list of all posts?

August 5, 2022 by Magenaut

I need to get a list of all posts in a certain category. The number of posts is more than 100. I do not need the post’s content. I need only id and slug.

Categories Q&A, Wordpress Tags rest-api Leave a comment

Headers already sent error with get_template_part in REST API call

August 5, 2022 by Magenaut

Crosspost from StackOverflow

Categories Q&A, Wordpress Tags get-template-part, php, rest-api, theme-development Leave a comment
Older posts
Newer posts
← Previous Page1 … Page3 Page4 Page5 … Page10 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress