• Resolved xarz

    (@xarz)


    As I worked out in https://www.ads-software.com/support/topic/custom-field-block-only-shows-id-not-name-in-a-acf-field/
    I was able to show a custom taxonomy name based on ACF field

    Now I want to do the same but not in template post-custom-field.php.

    I want to show the custom taxonomy name in acf field in the template I’ve edited with Custom Post type block in Display settings -> Post template and used a custom post template on my own.

    There as before I want to show custom taxonomy name not the ID.
    I’ve used the code snipets plugin to add the phpcode to the custom post template (via shortcode) but this php it’s not working to show the custom taxonomy name.

    Any hints which php_code can show the name of the custom taxonomy id that custom_field block is showin me?
    I was using this code to show the name:

    query_posts(array(
    ‘post_type’ => ‘projectes’
    ));
    the_terms( get_the_id(), ‘tipus’, __( “Tipologia Projecte: ” ), “, “,”.” );

    But no luck.

    Thanks in advance


Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Showing custom taxonomy name (again)’ is closed to new replies.