Closed Alex-451 closed 1 year ago
Found a workaround using CustomRequests:
var posts = await _client.CustomRequest.GetAsync<IEnumerable<ArticleDto>>($"wp/v2/posts{queryBuilder.BuildQuery()}");
public class ArticleDto : Post
{
[JsonProperty("jetpack_featured_media_url")]
public Uri JetpackFeaturedMediaUrl { get; set; }
}
the
/wp-json/wp/v2/posts
endpoint returns the custom propertyjetpack_featured_media_url
which contains the thumbnail for the post.Can I somehow get that custom property?
Post for reference (
jetpack_featured_media_url
is below tags):