Forums

Html > WordPress (Works fine) menu doesnt (3 posts)

  1. lomolibertine
    Member
    Posted 5 months ago #

    Hi, I'm sorry I am about to ask such a noob question. But after about 7 hours trying to figure it out I just cant. Its my first time using a html page and converting it to wordpress.

    I have created a website locally (Well its a html template I download as client asked for that)

    It has a menu at the top with home About Gallery etc.
    these are all linked to the correct pages locally.

    I have created two pages so far home.php and gallery.php have linked them via wordpress admin etc. The home page is set as a static page etc.

    The problem comes is when I try and link the menu on the home.php (via dreamweaver) the only way I can get the gallery.php to link is using the full path
    /wp-content/themes/twentyten/gallery.php

    I want it to just be domainname.co.uk/gallery?
    As at the moment the url bar shows the complete path and I dont want that?

    What do I need to do to get this to work
    .
    Also permalinks is set to day and name (but this wont have any effect on my menu that is saved in the home.php right!?

    If anyone can shed some light on where im going wrong - Id be so happy!.

    Thanks

    Sarah

  2. Jonas Grumby
    Member
    Posted 5 months ago #

    That is not the correct way to name your php templates.

    http://codex.wordpress.org/Template_Hierarchy

  3. lomolibertine
    Member
    Posted 5 months ago #

    I followed a video on youtube on "using wordpress as cms"
    I renamed the html pages to .php

    added
    <?php
    /*
    Template Name: homepage
    */
    ?>

    to the top of the page, then uploaded both home.php and gallery.php to the theme folder "im using the default twentyten theme" I then add

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

    <?php wp_link_pages(array('before' => 'Pages: ', 'after' => '
    ', 'next_or_number' => 'number')); ?>

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

    where I want to be able to edit the content via wordpress and add the html into the page via the wordpress page..

    So is this where I am going wrong?

Reply

You must log in to post.

About this Topic