What's the best way to query the logo? #1836
-
It appears that the best way is to create a mediaItem that is called logo and query for that. Is there a better way? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Here is the query I'm currently using.
|
Beta Was this translation helpful? Give feedback.
-
@jeffabailey at the moment the logo isn't explicitly exposed in the Schema with its own entry point, but you could expose it to the schema by registering a new field to the Schema using You can read more about And the other |
Beta Was this translation helpful? Give feedback.
-
I found this query, but it's failing for me.
More hits: https://github.com/search?q=allWordpressWpLogo&type=code Here's the error I'm seeing. |
Beta Was this translation helpful? Give feedback.
@jeffabailey at the moment the logo isn't explicitly exposed in the Schema with its own entry point, but you could expose it to the schema by registering a new field to the Schema using
register_graphql_field()
You can read more about
register_graphql_field
function here: https://www.wpgraphql.com/functions/register_graphql_field/And the other
register_graphql_*
functions here: https://www.wpgraphql.com/functions/