# Single file not loading when clicking on posts

**URL:** <https://forum.pinegrow.com/t/single-file-not-loading-when-clicking-on-posts/4963>\
**Category:** General\
**Created:** [February 14, 2021, 3:12pm UTC](https://forum.pinegrow.com/t/single-file-not-loading-when-clicking-on-posts/4963 "2021-02-14T15:12:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevegun1975](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@stevegun1975](https://forum.pinegrow.com/u/stevegun1975)\
**Post date:** [February 14, 2021, 3:12pm UTC](https://forum.pinegrow.com/t/single-file-not-loading-when-clicking-on-posts/4963/1 "2021-02-14T15:12:53Z")

</div>

I have created a wordpress theme and can get the posts to display in the index but when I click on the post nothing happens… The last theme that I did was a few years ago so I know I might be rusty but just cant work it out.

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [February 14, 2021, 3:26pm UTC](https://forum.pinegrow.com/t/single-file-not-loading-when-clicking-on-posts/4963/2 "2021-02-14T15:26:38Z")

</div>

Hey @stevegun1975,  
How are you adding the posts to the index? Hard to exactly troubleshoot without some code to pour over. Do you have a link to look at your page, or is it all local?  
Cheers,  
Bob

---

<div class="post-metadata">

**Author:** ![stevegun1975](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@stevegun1975](https://forum.pinegrow.com/u/stevegun1975)\
**Post date:** [February 14, 2021, 3:29pm UTC](https://forum.pinegrow.com/t/single-file-not-loading-when-clicking-on-posts/4963/3 "2021-02-14T15:29:22Z")

</div>

No the page is local, I have no issues with the posts displaying in the index or another page but it’s just when I click on the post they normally would load up on the single.php but I’m getting nothing. Bit strange really.

The posts are being added to the index by the normal adding a main loop item and adding other things like title etc…

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [February 14, 2021, 3:53pm UTC](https://forum.pinegrow.com/t/single-file-not-loading-when-clicking-on-posts/4963/4 "2021-02-14T15:53:26Z")

</div>

Again, hard to troubleshoot without a bit of code. Maybe it is an issue with your permalinks? Sometimes you have to go in and change the link settings and resave. How are you adding the permalink to each post?

---

<div class="post-metadata">

**Author:** ![stevegun1975](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@stevegun1975](https://forum.pinegrow.com/u/stevegun1975)\
**Post date:** [February 14, 2021, 3:55pm UTC](https://forum.pinegrow.com/t/single-file-not-loading-when-clicking-on-posts/4963/5 "2021-02-14T15:55:45Z")

</div>

Hi Rob, I’m not I though that wordpress did this for you when when you create a post item inside wordpress.

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [February 14, 2021, 4:08pm UTC](https://forum.pinegrow.com/t/single-file-not-loading-when-clicking-on-posts/4963/6 "2021-02-14T16:08:35Z")

</div>

No, you need to add a permalink to the actual post. There are a number of ways to do it - make the title a link, make a read more button…  
So, wrap the element you want the user to click with `<a></a>` then use the “Get Permalink” action from the “Links” section.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/e/e316311eeb35a2d635e7d7aa24984911cce04e5a.png)  
If you don’t add anything for post id it will default to the current post. Just replace the url of the link.  
Hope this solves it!  
Bob

---

<div class="post-metadata">

**Author:** ![stevegun1975](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@stevegun1975](https://forum.pinegrow.com/u/stevegun1975)\
**Post date:** [February 14, 2021, 4:22pm UTC](https://forum.pinegrow.com/t/single-file-not-loading-when-clicking-on-posts/4963/7 "2021-02-14T16:22:36Z")

</div>

Hi Bob,  
Thanks I knew I was missing something… You’ve fixed me… I new I was rusty.
