Skip to content

Commit

Permalink
add caveat to README
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidsector9 committed Apr 21, 2022
1 parent 168d377 commit 200f133
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ Note that you need to add `data-sophi-feature=<widget_name>` to the wrapper div
</div>
```

#### Caveats
While the above query integration works just fine, it has been observed that on VIP infrastructures, `WP_Query` returns latest posts instead of the posts curated by Sophi. A workaround for this is to use [get_posts](https://developer.wordpress.org/reference/functions/get_posts/) instead.

### Post content type

By default, Sophi for WordPress uses post format as the content type. This plugin uses `content_type` internally to distinguish between WordPress post type and Sophi type.
Expand Down

0 comments on commit 200f133

Please sign in to comment.