The MU forums have moved to WordPress.org

Exclude Custom Field (3 posts)

  1. boonika
    Member
    Posted 15 years ago #

    I'm using one custom field for posts published on my home page. It is set inside index.php. I also want to display two other custom fields on single post page. So I've placed <?php the_meta(); ?> inside single.php. The problem is that the first custom field I mentioned also appears on single post page. How can I exclude it. Except to search forums or codex for another hour:)

  2. boonika
    Member
    Posted 15 years ago #

    Maybe this will solve my problem. We'll see...

    get_post_custom_values($key)

  3. boonika
    Member
    Posted 15 years ago #

    Yes it works

About this Topic