Skip to content

Commit

Permalink
docs: fix method names in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Coby Tamayo committed Jul 22, 2019
1 parent b284188 commit 4598c83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/posts.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ WordPress's built-in `category` and `post_tag` taxonomies get their own helpers
```php
// single.php
$post = new BlogPost();
$relatedPosts = $post->get_related_posts_by_category();
$relatedPostsByTag = $post->get_related_posts_by_tag();
$relatedPosts = $post->get_related_by_category();
$relatedPostsByTag = $post->get_related_by_tag();
```

## Customizing Post Admin Columns
Expand Down

0 comments on commit 4598c83

Please sign in to comment.