Skip to content

Instantly share code, notes, and snippets.

View leoloso's full-sized avatar

Leonardo Losoviz leoloso

View GitHub Profile
@leoloso
leoloso / create-posts-in-bulk-using-template.gql
Created April 15, 2025 23:58
Create posts in bulk using template, for Gato GraphQL
query ExportData {
postTitleTemplate: _echo(value: "Photograph: {label}"
)
@export(as: "postTitleTemplate")
postContentTemplate: _echo(value: """
<!-- wp:paragraph -->
<p>This is a photograph of: <strong>{label}</strong></p>
<!-- /wp:paragraph -->