# Home page stories are not visible

**URL:** <https://forum.ghost.org/t/home-page-stories-are-not-visible/5343>\
**Category:** Developer help\
**Created:** [January 29, 2019, 9:25am UTC](https://forum.ghost.org/t/home-page-stories-are-not-visible/5343 "2019-01-29T09:25:30Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev\_xp](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@dev\_xp](https://forum.ghost.org/u/dev_xp)\
**Post date:** [January 29, 2019, 9:25am UTC](https://forum.ghost.org/t/home-page-stories-are-not-visible/5343/1 "2019-01-29T09:25:30Z")

</div>

Hi,  
While running my theme Sparta on localhost, we can see all the stories in the home page. However after deploying in production server. We are unable to see all our stories on

 ![02%20PM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/c/cf5d67277ab80b5720209ca99c2046b42ef0642d.jpeg)

---

<div class="post-metadata">

**Author:** ![dev\_xp](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@dev\_xp](https://forum.ghost.org/u/dev_xp)\
**Post date:** [January 29, 2019, 9:26am UTC](https://forum.ghost.org/t/home-page-stories-are-not-visible/5343/2 "2019-01-29T09:26:12Z")

</div>

![53%20PM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/2/234c566e74760f9bb677fe701015e69e7cece53f.png)

---

<div class="post-metadata">

**Author:** ![marvin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/marvin/32/2455_2.png) [@marvin](https://forum.ghost.org/u/marvin)\
**Post date:** [January 29, 2019, 12:15pm UTC](https://forum.ghost.org/t/home-page-stories-are-not-visible/5343/3 "2019-01-29T12:15:10Z")

</div>

Can you maybe provide us with the source code you’re using to fetch the posts?

---

<div class="post-metadata">

**Author:** ![dev\_xp](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@dev\_xp](https://forum.ghost.org/u/dev_xp)\
**Post date:** [January 30, 2019, 8:30am UTC](https://forum.ghost.org/t/home-page-stories-are-not-visible/5343/4 "2019-01-30T08:30:29Z")

</div>

```
{{#get "posts" filter="featured:true" include="tags,authors" order="published_at desc"}} 
            {{#foreach posts}} 
                {{!-- The tag below includes the markup for each post - partials/post-card.hbs --}} 
                {{> "post-card"}} 
            {{/foreach}} 
        {{/get}}
        
        {{#get "posts" filter="featured:false" include="tags,authors" order="published_at desc"}}
            {{#foreach posts}} 
                {{!-- The tag below includes the markup for each post - partials/post-card.hbs --}} 
                {{> "post-card"}}
            {{/foreach}}
        {{/get}}
```

---

<div class="post-metadata">

**Author:** ![marvin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/marvin/32/2455_2.png) [@marvin](https://forum.ghost.org/u/marvin)\
**Post date:** [January 30, 2019, 8:37am UTC](https://forum.ghost.org/t/home-page-stories-are-not-visible/5343/5 "2019-01-30T08:37:36Z")

</div>

Hmm, seems weird to me. The code is correct. Which ghost version are you using locally? Are you using the same version and same settings on the server?

---

<div class="post-metadata">

**Author:** ![dev\_xp](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@dev\_xp](https://forum.ghost.org/u/dev_xp)\
**Post date:** [January 30, 2019, 8:38am UTC](https://forum.ghost.org/t/home-page-stories-are-not-visible/5343/6 "2019-01-30T08:38:53Z")

</div>

local : 2.11.1 same in prod server.

is there any other scenario in which this issue might happen ?

---

<div class="post-metadata">

**Author:** ![marvin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/marvin/32/2455_2.png) [@marvin](https://forum.ghost.org/u/marvin)\
**Post date:** [January 30, 2019, 8:42am UTC](https://forum.ghost.org/t/home-page-stories-are-not-visible/5343/7 "2019-01-30T08:42:57Z")

</div>

Have you tested the theme on a third Ghost installation? That could lock the issue down to either the theme or your server.

If you don’t have a third Ghost install, I could test it for you on my install if you feel comfortable with that, but of course that’s up to you.

---

<div class="post-metadata">

**Author:** ![Rubel](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/rubel/32/242_2.png) [@Rubel](https://forum.ghost.org/u/Rubel)\
**Post date:** [January 30, 2019, 8:45am UTC](https://forum.ghost.org/t/home-page-stories-are-not-visible/5343/8 "2019-01-30T08:45:39Z")

</div>

Are You Added The Code In package.json File ?

```auto
    "engines": {
        "ghost": ">=2.0.0",
        "ghost-api": "v2"
    },

```

follow the default casper theme’s package.json .

---

<div class="post-metadata">

**Author:** ![dev\_xp](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@dev\_xp](https://forum.ghost.org/u/dev_xp)\
**Post date:** [January 30, 2019, 8:48am UTC](https://forum.ghost.org/t/home-page-stories-are-not-visible/5343/9 "2019-01-30T08:48:55Z")

</div>

currently,

“engines”: {  
“ghost”: “\>=1.2.0”  
}

i am going to change now to what you suggested.

---

<div class="post-metadata">

**Author:** ![Rubel](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/rubel/32/242_2.png) [@Rubel](https://forum.ghost.org/u/Rubel)\
**Post date:** [January 30, 2019, 8:52am UTC](https://forum.ghost.org/t/home-page-stories-are-not-visible/5343/10 "2019-01-30T08:52:07Z")

</div>

Have Any Console Error As Like As “get” ghost api not fount

---

<div class="post-metadata">

**Author:** ![marvin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/marvin/32/2455_2.png) [@marvin](https://forum.ghost.org/u/marvin)\
**Post date:** [January 30, 2019, 8:59am UTC](https://forum.ghost.org/t/home-page-stories-are-not-visible/5343/11 "2019-01-30T08:59:00Z")

</div>

The theme should work just fine without the JSON code you provided. My theme doesn’t have that code segment included either, but the posts still show up for me. Either it’s a weird theme error, or @dev_xp has a faulty installation on his server.

---

<div class="post-metadata">

**Author:** ![Hannah](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hannah/32/22_2.png) [@Hannah](https://forum.ghost.org/u/Hannah)\
**Post date:** [January 30, 2019, 9:04am UTC](https://forum.ghost.org/t/home-page-stories-are-not-visible/5343/12 "2019-01-30T09:04:25Z")

</div>

You’re using the `{{#get}}` helper, which requires access to the API.

The API version is configured via your theme’s package.json:

```auto
"engines": {
   "ghost-api": "v2"
},

```

For backwards compatibility, when this is not specified, the API version falls back to v0.1. However, this API is now deprecated, and is disabled by default on new installs.

I guess that locally you have an install with the v0.1 enabled (you’d see this in the Labs screen) and in production the v0.1 API is disabled.

Upgrading your theme to use the v2 API is the way forward.

---

<div class="post-metadata">

**Author:** ![dev\_xp](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@dev\_xp](https://forum.ghost.org/u/dev_xp)\
**Post date:** [January 30, 2019, 9:53am UTC](https://forum.ghost.org/t/home-page-stories-are-not-visible/5343/13 "2019-01-30T09:53:31Z")

</div>

> [@Rubel](#):
>
> “engines”: { “ghost”: “\>=2.0.0”, “ghost-api”: “v2” },

Ty it worked after mentioning version in package.json

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [February 13, 2019, 9:59am UTC](https://forum.ghost.org/t/home-page-stories-are-not-visible/5343/14 "2019-02-13T09:59:34Z")

</div>

Closed on February 13, 2019, 9:59am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
