Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $projects = get_pages('child_of=' . $post->ID . '&sort_column=menu_order&sort_order=desc');
- foreach($projects as $p) :
- $link = get_permalink($p->ID);
- $project_url = _get_field($p->ID, 'url');
- ?>
- <li>
- <div class="cl"> </div>
- <div class="image"><a href="<?=$link?>"><?=_get_project_info('image', $p->post_content)?></a></div>
- <div class="in">
- <h3><a href="<?=$link?>"><?=$p->post_title?></a></h3>
- <div class="entry">
- <?php echo apply_filters('the_content', _get_project_info('short_info', $p->post_content))?>
- </div>
- <p class="more">
- <a href="<?=$link?>"><span>Approfondimento</span></a>
- <a href="<?=$project_url?>" rel="nofollow"><span>link al sito</span></a>
- </p>
- </div>
- <div class="cl"> </div>
- </li>
- <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement