Skip to content

Instantly share code, notes, and snippets.

<a href="{route="projects/view" project="{url_title}"}" class="btn btn--primary">View Project</a>
<?php
/*
Template Name: Daily Results Page
*/
?>
<?php get_header(); ?>
<div class="wrapper">
<main>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
{exp:channel:entries channel="city"}
City
<ul>
{exp:playa:parents channel="property"}
<li>{title}</li>
{/exp:playa:parents}
</ul>
{/exp:channel:entries}
{exp:channel:entries channel="city" dynamic="no" search:city_name="={segment_1}"}
{categories}
{if {count} == 1}
{embed="core/city_info"
category="{category_id}"
location_information="{location_information}"
city_name="{city_name}"
city_colour="{colour}"
}
{/if}
<ul class="paginate">
<?php if (get_next_posts_link()) { ?><li class="previous"><?php next_posts_link(__('< Previous Posts')); ?></li><?php } ?>
<?php if (get_previous_posts_link()) { ?><li class="next"><?php previous_posts_link(__('Newer Posts >')); ?></li><?php } ?>
</ul>
<?php query_posts( array( 'post__not_in' => get_option( 'sticky_posts' ) ) ); if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
{embed="includes/head"}
<body {if embed:body_id}
id="{embed:body_id}"
{if:elseif segment_1}
id="{segment_1}"
{/if}>
<div class="wrapper">
{embed="includes/header"}
<div class="accordion" id="accordion2" data-component="tab">
<div class="accordion-group">
<ul class="row pricing-breakdown threes nav nav-tabs">
<li class="span4 price-panel monthly-price-panel">
<div class="info-block">
<strong class="title">Talk to us about your renewal</strong>
</div>
<div class="action-btn">
<section class="related_projects">
{if projects_related:no_results}nothing
{if:else}Stuff{/if}
<h2>Related Projects</h2>
<ul class="slats">
{projects_related}
<li>
<figure class="project_related">
<a href="{projects_related:title_permalink='projects/view'}"><img src="{projects_related:project_splash}" width="" height="" alt="{projects_related:title} Screenshot"></a>
<figcaption><a href="{projects_related:title_permalink='projects/view'}">{projects_related:title}</a></figcaption>
<section class="related_projects">
{if projects_related:no_results}nothing{/if}
{if projects_related}Stuff{/if}
<h2>Related Projects</h2>
<ul class="slats">
{projects_related}
<li>
<figure class="project_related">
<a href="{projects_related:title_permalink='projects/view'}"><img src="{projects_related:project_splash}" width="" height="" alt="{projects_related:title} Screenshot"></a>
<figcaption><a href="{projects_related:title_permalink='projects/view'}">{projects_related:title}</a></figcaption>