Support » Themes and Templates » Insert image with link in page.

  • Hi.

    I just ran in to a small problem which I can’t solve on my own or find any clear answers to. I want to insert an image which links to another page (in other words a button) at the top of every page. Although I can’t make it work. If anyone can suggest some code that might be useful to me I would be most grateful.

    Here’s the php code for my pages:

    <?php get_header(); ?>

    <div class=”entry”>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h3><?php the_title(); ?></h3>
    <?php the_content(‘<p class=”serif”>Read the rest of this page »</p>’); ?>

    <?php wp_link_pages(array(‘before’ => ‘<p>Pages: ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>

    <?php endwhile; endif; ?>
    <?php edit_post_link(‘Edit this entry.’, ‘<p>’, ‘</p>’); ?>

    <?php get_footer(); ?>

    Nothing fancy but it does what it’s supposed to do just fine.

  • The topic ‘Insert image with link in page.’ is closed to new replies.