Giter Site home page Giter Site logo

Comments (4)

sebtiz13 avatar sebtiz13 commented on June 23, 2024 8

Ok these errors occur when no media has been created and no one post has tags.

For tags :
I think is due to this part https://github.com/gridsome/gridsome/blob/master/packages/source-wordpress/index.js#L152

Because use map on empty array if no post contains tags the createReference function is never called and graphql does not add the tags property in the type WordPressPost.

If you don't use tags on wordpress you can remove

On template

<template v-if="$page.wordPressPost.tags.length">
  <h4>Tags</h4>
  <ul class="list tags">
    <li v-for="tag in $page.wordPressPost.tags" :key="tag.id" >
      <g-link :to="tag.path">{{ tag.title }}</g-link>
    </li>
  </ul>
</template>

and on page-query

tags {
  id
  title
  path
}

To remove errors in the generations

from gridsome-starter-wordpress.

choyan avatar choyan commented on June 23, 2024

Same problem here. Working 10 days ago. Suddenly stopped working.

from gridsome-starter-wordpress.

sebtiz13 avatar sebtiz13 commented on June 23, 2024

Have same problem, even with fresh install of wordpress

from gridsome-starter-wordpress.

rasult22 avatar rasult22 commented on June 23, 2024

I've got the same problem, because I didn't create posts and didn't link to one of them the tagname

from gridsome-starter-wordpress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.