WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
custom field on custom taxonomy, get_field and the_field returning no results (2 posts)

  1. Geoffrey Hale
    Member
    Posted 1 year ago #

    Using get_field or the_field with custom taxonomy and specific id returns no results. Please note, I have never used ACF so the problem may be on my end. Please reply, time critical.

    // get value from a taxonomy (taxonomy = "category", id = 3)
    $value = get_field('field_name', 'category_3');

    http://www.advancedcustomfields.com/docs/tutorials/retrieving-values-from-other-pages-taxonomy-user-media/

    http://wordpress.org/extend/plugins/advanced-custom-fields/

  2. binnovate
    Member
    Posted 11 months ago #

    I came out with a new way:
    <?php echo get_option('home'); ?>/?cat=<?php the_field('home_left_column-first_row_link'); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic