Hello I’m having trouble displaying my wheels on my site. It’s www.ewwfl.com. Everything was set up but then my php wheels page broke. It was ment to show all my brands of wheels we carry.
Here is the code and I hope someone can fix this.
<?php /*template name: Wheels Page*/ get_header(); ?> <?php nectar_page_header($post->ID); ?><div class="row">
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; endif; ?>
<br class="clear" />
<div class="brands">
<h1 class="uppercase">Wholesale Wheels for Distribution by Brand</h1>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class=“addthis_button_facebook” rel=“nofollow”">
<a class=“addthis_button_pinterest_share” rel=“nofollow”">
<?php
$tax = 'wheel-brands';
$tax_terms = get_terms( $tax, 'hide_empty=0&parent=0');
if ($tax_terms) {
$count = 0;
foreach ($tax_terms as $tax_term) {
?>
<article>
<a href="http://ewwfl.com/wheels/<?php echo $tax_term->slug; ?>" title="<?php echo $tax_term->name; ?>">
<?php
$term = get_term_by( 'slug', $tax_term->name, $tax);
$term_id = $term->term_id;
$saved_data = get_tax_meta($term_id,'ewwfl_image_field_id',true);
echo '<img src="'.$saved_data['src'].'">';
?>
<span><?php echo $tax_term->name; ?></span>
</a>
</article>
<?php
} // end foreach #tax_terms
}
?>
</div>
</div><!--/row-->
<?php get_footer(); ?>