title: How to use _embed parameter while fetching Posts by Category (Wordpress)?
body: <blockquote>
  <p>Hello All, Thanks for your Time. I am <code>fetching all the Posts</code> using the <code>categories=</code> parameter as follows :</p>
  </blockquote>
  <pre><code>https://recipes.turboweb.online/wp-json/wp/v2/posts?categories=2
  </code></pre>
  <blockquote>
  <p>Here the ID of the category is <code>2</code>. So, it fetches me all the Posts containing the CategoryId 2., But, this requests doesn't fetches the <code>Comments</code> and the <code>AuthorName</code> and many more required data.</p>
  </blockquote>
  <blockquote>
  <p>I know by using <code>_embed</code> on a normal query , we would get all the data in a single query which saves time and resources . Here is the query looks like :</p>
  </blockquote>
  <pre><code>https://recipes.turboweb.online/wp-json/wp/v2/posts?_embed
  </code></pre>
  <blockquote>
  <p>This is the Output :</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/qcRcH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qcRcH.png" alt="enter image description here" /></a></p>
  <blockquote>
  <p>My question is how can I use <code>_embed</code> in the parameters while fetching posts by specific CategoryID ? In more simple Terms, how can i insert the <code>_embed</code> parameter in the below query ?</p>
  </blockquote>
  <pre><code>https://recipes.turboweb.online/wp-json/wp/v2/posts?categories=2
  </code></pre>