What is the best way to get api (Populate Posts | most views) with wpgraphql and How to add " like " for Posts ? #2869
Answered
by
AliNaraghiA
AliNaraghiA
asked this question in
General
-
I think the solution is to combine JavaScript code in the frontend and send information to WordPress. |
Beta Was this translation helpful? Give feedback.
Answered by
AliNaraghiA
Jul 27, 2023
Replies: 2 comments
-
put the code below in your functions.php theme's file.
the WPGraphQL playground: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AliNaraghiA
-
how to add " like " for Posts ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
put the code below in your functions.php theme's file.
#1860 (reply in thread)
the WPGraphQL playground:
{
"input": {
"clientMutationId": "test",
"slug": "slug",
"views": 5
}
}