WordPress.org

Support

Support » How-To and Troubleshooting » unable to get id and meta of blog page

unable to get id and meta of blog page

  • hi
    i am using get_post_meta($post->ID, 'topheading', true); to get meta fields to show in my theme.
    this works well for all pages except for the blog page.
    i have selected blog page from reading settings and when i goto page this code shows the blog posts meta and not the blog page’s meta.
    can anyone help me with this.

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘unable to get id and meta of blog page’ is closed to new replies.
Skip to toolbar