WordPress.org

Ready to get started?Download WordPress

Forums

Insert image with link in page. (1 post)

  1. Arcane
    Member
    Posted 7 years ago #

    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')); ?>

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

    <?php get_footer(); ?>

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

Topic Closed

This topic has been closed to new replies.

About this Topic