Adding a widget to a non widget template
-
Hi
I would like to insert a widget into my page the coding is below, where abouts would I place it, this is the section I would like it in:
<div id=”featured”>
<img src=”<?php echo get_option(‘home’); ?>/wp-content/themes/arthemia/images/featured.png” width=”72px” height=”17px” alt=”” />
<?php query_posts(“showposts=4&category_name=Featured”); $i = 1; ?>
<?php while (have_posts()) : the_post(); ?>
<div class=”clearfloat”>
<?php $values = get_post_custom_values(“Image”);
if (isset($values[0])) { ?>
” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>
<img src=”<?php echo bloginfo(‘template_url’); ?>/scripts/timthumb.php?src=/<?php
$values = get_post_custom_values(“Image”); echo $values[0]; ?>&w=100&h=65&zc=1&q=100″
alt=”<?php the_title(); ?>” class=”left” width=”100px” height=”65px” />
<?php } ?>
<div class=”info”>” rel=”bookmark” class=”title”><?php the_title(); ?></div>
</div><?php endwhile; ?>
</div>
I have read a couple of other comments but it doesn’t specify where to place the text. I kind of want to replace the style which it is now to just a widget.
Thank you for you help
The topic ‘Adding a widget to a non widget template’ is closed to new replies.