Viewing 8 replies - 1 through 8 (of 8 total)
  • scribu

    (@scribu)

    Is that line in The Loop? In other words, is $post->ID set properly?

    Thread Starter yoch

    (@yoch)

    Yes

    <?php if (have_posts()) : ?>
    <h2 class="pagetitle"><?php the_meta_title(); ?></h2>
    <?php while (have_posts()) : the_post(); ?>

    and so on…

    but seems like there is no $post array…

    I’ve solved it another way:

    ‘$custom_fields = get_post_custom();
    $level = $custom_fields[‘level’][0];’

    best,
    K.

    Thread Starter yoch

    (@yoch)

    By the way, is it possible to search for cf values with spaces?

    like /?level=very low

    now plugin treats it like two different values – ‘very’ and ‘low’

    thanks

    scribu

    (@scribu)

    In the plugin settings page you’ll find this:

    Allow key=value1+value2 (value1 AND value2) queries
        Note: A '+' in the URL is equivalent to a space!

    Uncheck that.

    Thread Starter yoch

    (@yoch)

    Oh, I’m sorry..
    Excuse me for the stupid questions ??

    I’m rewriting titles in header.php in this manner:

    <title>
    if (is_front_page()) { echo 'My website';}
    elseif (is_page()) { wp_title(' ',true,'right');
    </title>

    etc.

    Is there any conditional tag for the plugin? For example, if “meta.php” template used – echo something else, instead of title generated by plugin?
    I want to use my custom html <title> for the meta search results.

    thanks for the patience

    scribu

    (@scribu)

    You can use is_meta(), but of course, you could have found that out yourself by RTFM.

    Thread Starter yoch

    (@yoch)

    well..that was obvious and I tried it before asking… but it doesn’t work in header.php

    anyway, thank you for the help

    scribu

    (@scribu)

    Try the development version (1.5a).

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Custom Field Taxonomies] can’t get customfield values in meta.php template’ is closed to new replies.