get_post_meta not working inside or after the loop
-
I followed this tutorial to display a single post on my static home page. That went well.
However, I am now finding that because of this, any data called through the get_post_meta function inside and after the loop does not show up at all. Data called before the loop works fine.
If I remove the following line:
query_posts(‘posts_per_page=1’); //returns only the front page
the meta data appears as it should … but then I don’t get the single post.
I have no idea why this is happening or how to fix it … so I’m hoping someone can steer me in the right direction.
Here is the page I am working on: https://veronicawong.ca/front/
Thanks!
- The topic ‘get_post_meta not working inside or after the loop’ is closed to new replies.