Forum Replies Created

  • Hi James. Thank you for your efforts and time!
    I will try as much as possible right now to describe the problem.

    1. I need to get this taxonomy for the site of the tourist agency.
    That is a have some structure:

    – coutnry (with types of recreation )
    — citys (with hotel inside)
    — hotel

    Screen of what the result should turn out (example country – Austrya):
    This country have several kinds of recreation (spa, ski and other)
    I need to get selected taxonomy title – with the title and URL of the pages included in the taxonomy.

    {taxonomy title}
    – {page title + url}
    – {page title + url}
    – {page title + url}

    {taxonomy title}
    – {page title + url}
    – {page title + url}
    – {page title + url}

    2. Screenshot of the field group’s location rule

    3. Tried to run your code:

    4. Block in page

    5. Structure of taxonomy
    Structure makes for ease of operation when selecting taxonomies

    Thank you very much for your help!!!

  • Hi everyone. Maybe someone faced a similar problem? Need to find the solution … I have read a lot of things, but could not find the right…

    I would be glad for any help!

  • Hi @James
    Thanks for your quick answer and a desire to help.
    I will try to explain the problem as detailed as possible.

    1. For example – I get custom field “eee”, which should display multiple taxonomy (checkbox) – from parent taxonomy “trip”.

    2. “trip” taxonomy structure in screen:

    3. Field view in page:

    In final variant I need to display selected taxonomy and link to the page included in this taxonomy.
    – title of selected taxonomy
    — post title + url
    — post title + url

    – title of selected taxonomy
    — post title + url
    — post title + url

    When I try to use this code:

    $terms = get_field('eee');
    if( $terms ): ?>
    	<?php foreach( $terms as $term ): ?>
    		<h2><?php echo $term->name; ?></h2>
    		<p><?php echo $term->description; ?></p>
    		<a href="<?php echo get_term_link( $term ); ?>">View all '<?php echo $term->name; ?>' posts</a>
    	<?php endforeach; ?>
    <?php endif; ?>

    It does`t give me any values only included taxonomies links ( – in castom field I checked 2 taxonomy.

    Can`t use ID, because taxonomy not bind to specific pages.

Viewing 4 posts - 1 through 4 (of 4 total)