Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter areifers

    (@areifers)

    I was able to figure out the issue… Here’s how.

    1: Stopped worrying about Yoast and just took a look at the custom fields on the custom type… I verified the information using the following code snippet provided by Justin Tadlock ( http://justintadlock.com/ ) a few years ago

    <?php
    $custom_fields = get_post_custom();

    foreach ( $custom_fields as $field_key => $field_values ) {
    foreach ( $field_values as $key => $value )
    echo $field_key . ‘ – ‘ . $value . ‘
    ‘;
    }
    ?>

    2. The value I was looking for was returned and it was in the list of items I tried in the page meta description. Specifically %%cf_wpcf-city%% was the field that worked when placed on the taxonomy but not on the post specific meta description. I thought this was odd, because my understanding was that you could use Yoast tags anywhere. If anyone has any comments or insight why it would not work on the post specific meta description but does work in the title and meta taxonomies meta template for the Custom Type post type I’d appreciate it. Thanks

Viewing 1 replies (of 1 total)