Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 60a1c5c

Browse files
committed
Add seo fields to tag query
1 parent 238eb71 commit 60a1c5c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/wordpress/tags/queryPostsByTag.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {gql} from '@apollo/client'
22
import defaultPageData from '../_partials/defaultPageData'
33
import {archivePostFragment, archivePosts} from '../posts/queryPostsArchive'
4+
import seoPostFields from '../_partials/seoPostFields'
45

56
// Query: retrieve posts tag archive.
67
const queryPostsByTag = gql`
@@ -17,6 +18,7 @@ const queryPostsByTag = gql`
1718
) {
1819
${defaultPageData}
1920
tag(id: $id, idType: $idType) {
21+
${seoPostFields}
2022
${archivePosts}
2123
}
2224
}

0 commit comments

Comments
 (0)