Viewing 3 replies - 1 through 3 (of 3 total)
  • Where did you put the code? In the page content field or in the page template?

    If necessary please paste your code in a paster bin (e.g. http://paste.uni.cc/ ) and report the link back here.

    Resources:
    Pages
    Template Hierarchy

    Thread Starter CtrlAltElite

    (@ctrlaltelite)

    Here is my code: http://paste.uni.cc/19412

    As far as i know (Since im new to wordpress)

    I Clicked on ‘Write’ .. Then ‘Page’ .. and wrote that code into the ‘HTML’ tab.. and click publish.

    And then this is where im at now. It appears twice.

    Unfortunately, java isnt working on my pc, and i cant seem to be able to fix it. So i also dont know if the code is working, but someone did test it and it worked… But twice lol.

    It’s sopose to load ‘pjirc’

    I shall have a look at ‘Page Templates’ See if thats doing anything. I’ll also try changing the theme.

    It’s at page: http://jukebox.frih.net/?page_id=22
    I deleted the old one and tried agen.

    EDIT:
    Okay i change the theme and it just appeared once.
    Changed it back.. Created a new test page: http://jukebox.frih.net/?page_id=27
    Appears twice agen.. It’s the theme, I shall have a look at template.php
    Or is it a different file? =[

    Thread Starter CtrlAltElite

    (@ctrlaltelite)

    Whey, I feel smart now 🙂

    page.php –

    <div class="entrytext">
    				<?php the_content('<p class="serif">Read the rest of this page &raquo;
    '); ?>
    
    				<?php link_pages('<strong>Pages:</strong> ', '
    ', 'number'); ?>
    
    			</div>
    <?php the_content('<p class="serif">Read the rest of this entry &raquo;
    '); ?>
    
    <div style="height:13px;"><img src="<?php bloginfo('template_url');?>/images/postbg.jpg"  /></div>

    Removed the second ‘the_content’ line.. Works perfect.
    Thanks Micheal.
    Paul.

    Final Edit;
    If you would like to, and have the knowledge, you are welcome to turn that code into a WordPress plugin for pjIRC. I dont know how =[
    Else pasting it into a page works just as well.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Content in Page Displays twice.’ is closed to new replies.