Support

Account

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:

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

    Screen of what the result should turn out (example country – Austrya):
    http://joxi.ru/a2XZ76VSy9NeQr
    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
    http://joxi.ru/KAgoEyKug0owZA

    3. Tried to run your code:
    http://joxi.ru/823xgJOI6pZPkA

    4. Block in page
    http://joxi.ru/a2XZ76VSy9xw9r

    5. Structure of taxonomy
    http://joxi.ru/EA4zaqNIDkdpGm
    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”.
    http://joxi.ru/52azJO1IGY1gPA

    2. “trip” taxonomy structure in screen:
    http://joxi.ru/ZrJYE1Vt1y4QoA

    3. Field view in page:
    http://joxi.ru/ZrJYE1Vt1y4koA

    In final variant I need to display selected taxonomy and link to the page included in this taxonomy.
    Example:
    – 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:

    <?php 
    $terms = get_field('eee');
    if( $terms ): ?>
    	<ul>
    	<?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; ?>
    	</ul>
    <?php endif; ?>

    It does`t give me any values only included taxonomies links (http://joxi.ru/V2VLGlnf0OjaLr) – 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)