How to get_post_meta on blog page if custom.
-
Hi there,
Here’s my situation, I have wordpress setup so the “blog page” (type = post) is not the default one (mydomain/blog/).
So I created a page named Blog and tried to use custom fields in this page, with no luck.
On this page when I look at get_posts(id) I get the last post on my blog. I guess this is why I get nothing when trying to use the get_post_meta()…
I will like to be able to use those custom fields from the page, so I don’t have to set it in every single posts.
I found a work around using default value for the blog section… but this might be a problem later.
Does anybody knows how to fix that problem?
Thank you.
Julien
- The topic ‘How to get_post_meta on blog page if custom.’ is closed to new replies.