WordPress.org

Forums

Links and Archives Pages wont display!? (10 posts)

  1. xhan
    Member
    Posted 7 years ago #

    I can't get my Links and Archives pages to display!

    http://www.eruanna.net/archives

    <?php
    /*
    Template Name: Archives
    */
    ?>
    
    <?php get_header(); ?>
    
    	<div class="title"><?php the_title(''); ?></div>
    <div class="post">
    
    	<?php wp_get_archives(''); ?>
    
    	<?php edit_post_link('Edit this entry.', '', ''); ?>
    </div>
    
    	<?php get_footer(); ?>

    http://www.eruanna.net/links

    <?php
    /*
    Template Name: Links
    */
    ?>
    
    <?php get_header(); ?>
    
    	<div class="title"><?php the_title(''); ?></div>
    <div class="post">
    
    <ul>
    <?php get_links_list(); ?>
    </ul>
    
    	<?php edit_post_link('Edit this entry.', '', ''); ?>
    </div>
    
    	<?php get_footer(); ?>

    Do you have any idea why this is!?

  2. whooami
    Member
    Posted 7 years ago #

    you do NOT have any loop structure in that file.

    LOOK at how index.php is structured.

    http://codex.wordpress.org/The_Loop

  3. xhan
    Member
    Posted 7 years ago #

    so how come the default links.php doesn't have any loop text in it? or the archives.php for that matter.

    I've added the loop - still no joy.

  4. whooami
    Member
    Posted 7 years ago #

    because its not displaying posts, its displaying LINKS.

  5. xhan
    Member
    Posted 7 years ago #

    I want it to display links/archives not posts - capitalising things makes you sound really patronising you know.

  6. whooami
    Member
    Posted 7 years ago #

    You originally wrote:

    so how come the default links.php doesn't have any loop text in it!?

    well, ending your questions with !? makes you sound like a child

    editing your posts after the fact to remove the formatting makes you look like deceitful child.

    Moving on .. Ive answered your questions.

  7. xhan
    Member
    Posted 7 years ago #

    ooo professional.

    (removing what formatting?!)

    No you haven't. You've been thoroughly unhelpful and condescending.

    I want to make a links.php page to display links and an archives.php page to display archives, how posts come into it I have no clue.

    I've looked at the default themes WP ships with theres no mention of the loop in them, I've also downloaded several other themes and again no loop.

    So just tell me - how do I make an archives/links page that works.

  8. whooami
    Member
    Posted 7 years ago #

    the code you are using above for your archives is mixing apples and oranges..

    You cannot do this:

    <div class="title"><?php the_title(''); ?></div>
    <div class="post">

    or this:

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

    without being in the loop, as I have already said.

  9. xhan
    Member
    Posted 7 years ago #

    My links page now consists of this but still no links displaying!

    <?php
    /*
    Template Name: Links
    */
    ?>
    
    <?php get_header(); ?>
    
    <div class="title">Links</div>
    <div class="post">
    
    <ul>
    <?php get_links_list(); ?>
    </ul>
    
    </div>
    
    <?php get_footer(); ?>
  10. xhan
    Member
    Posted 7 years ago #

    The links now work - I had two links pages in WP but the archives still has no joy!

Topic Closed

This topic has been closed to new replies.

About this Topic