WordPress.org

Ready to get started?Download WordPress

Forums

How to make an archive page with 2.7 (30 posts)

  1. baal666
    Member
    Posted 5 years ago #

    I read this interesting tutorial about how to make an archive page:

    http://www.wpdesigner.com/2007/10/11/how-to-create-an-archives-page/

    However, it does not work for 2.7 because unless I am missing something there is no option for this on 2.7

    Anyone can help?

    Thanks

  2. baal666
    Member
    Posted 5 years ago #

    I now use a plugin to do this (SRG Clean Archives) but it's kind of slow. If anyone has any other solution, that would be nice.

    Thanks

  3. Len
    Member
    Posted 5 years ago #

    Normally it's just a matter of creating a new page template, (you can use index.php as a working example) write you page - call it archives or whatever and assign the new page template to it. In the page template itself you can insert whatever code you want.

    What theme are you using?

  4. thisisedie
    Member
    Posted 5 years ago #

    and assign the new page template to it

    How do you do that?

  5. thisisedie
    Member
    Posted 5 years ago #

    *cough* nevermind :o|

  6. baal666
    Member
    Posted 5 years ago #

    Thanks LenK. I will try this if the plugin gets too slow...

    BTW, is it possible to do the same with my blogroll list and will people on it still receive a trackback when I write something new if they are not on my sidebar anymore but on a page?

    Also, I wonder how you do link to the page you created... I mean: do you manually add the link in the sidebar and the menu?

    Thanks

  7. Len
    Member
    Posted 5 years ago #

    is it possible to do the same with my blogroll list and will people on it still receive a trackback when I write something new

    Yes and yes. I have created various page templates for the theme I'm using including 3 different blogrolls.

    You should understand the difference between trackbacks and pingbacks though.

    Trackback: You've just read something on another blog that inspired you to write your own post about. You write the post and manually send a trackback to the blog where you read the post that inspired you.

    Pingback: You've just read something on another blog that inspired you to write your own post about. You write the post and link to the blog where you read the post that inspired you. WordPress will automatically send a pingback to that blog.

    Both methods use different protocols.

    Also, I wonder how you do link to the page you created... I mean: do you manually add the link in the sidebar and the menu?

    You can add it manually if you want to but if you're using the wp_list_pages() tag the page will be printed out along with any others.

  8. baal666
    Member
    Posted 5 years ago #

    I am still confused...

    I did this:

    1) I created a page using a template I already have;
    2) I called it "bloglist.php" and saved it in my theme folder;
    3) I added <?php wp_list_bookmarks(); ?> in the code to show the links;

    but then... I don't know how to get the page showing http://example.com/bloglist instead of the http://example.com/wordpress/wp-content/theme/xxx/...

    BTW, I think it is possible to show the links by the priority considering last time they were updated and to add some extract. I'd really like to do this.

    Thanks... and thanks for the explanation for trackback/pingback. But... do people really manually enter trackback anymore?

  9. Len
    Member
    Posted 5 years ago #

    Okay, you have created a new page template called bloglist.php and inserted the pertinent code. Good. Next, write a new page (not post) using the write page window. Call it whatever you want ie: Blog List, Links whatever but leave the content blank. Assign the new page template to it.

    With trackbacks, I never use 'em. I just link to sites where I picked something up. (pingbacks)

  10. thisisedie
    Member
    Posted 5 years ago #

    I just now got this figured out and working. I have a question though: what's the difference between doing this and simply writing a page containing the tags/content you want?

  11. Len
    Member
    Posted 5 years ago #

    PHP doesn't normally play well in posts or pages. Page templates have the advantage that if you want to include some sort of PHP you can do so then assign the new template to your page.

    For example, I created a page template for displaying a random post from a particular category. That wouldn't work any other way.

  12. baal666
    Member
    Posted 5 years ago #

    @LenK: I still don't see how I could use that template. From the post page on WP2.7 I see there is a hierarchy of pages, and there is that scrolling menu in which there is no bloglist but there are other pages. I thought this may have been a cache problem so I closed and reopened Firefox, but it didn't change a thing.

    If I can't get this working, would having a "secret" blogslist using the links from the admin menu with 100 links and a "non-secret" bloglist showing manually in the page be a solution? I mean: will the 100 links still receive a pingback when I will write something new even if they are not displayed?

    Thanks

  13. Len
    Member
    Posted 5 years ago #

    If you're creating a new page template make sure you follow the instructions in the Codex --> Creating Your Own Page Templates

    If you have created a page template called bloglist.php make sure this is at the top ...

    <?php
    /*
    Template Name: bloglist
    */
    ?>

    It will then appear as an option to select from available page templates.

  14. baal666
    Member
    Posted 5 years ago #

    I did this and added the code, but so far it is not in the post page option in the admin menu. I will try later tonight or tomorrow, and will get back to you if it isn't working then.

    BTW, you didn't answered my other question (but hey, it's your right, cause I have a hell lot of questions! :P) about the bloglist and the pingbacks that get to them each time I write an article... Will they receive the pingback in their admin menu even if I don't show the bloglist?

    Thanks again. You are great help

  15. Len
    Member
    Posted 5 years ago #

    Will they receive the pingback in their admin menu even if I don't show the bloglist?

    Yes they will. By the way what theme are you using? I love tinkering with my local installs.

  16. baal666
    Member
    Posted 5 years ago #

    Thanks. I use a very modified bobv2 theme.

  17. Len
    Member
    Posted 5 years ago #

    If you're referring to bobv2 from BlogOhBlog then that theme already has its own archive page template --> archives.php

    Write a new page, call it Archives and select that page template from the drop menu.

    With respect to your bloglist page you can use this...

    <?php
    /*
    Template Name: bloglist
    */
    ?>
    
    <?php get_header(); ?>
    
    <div id="content">
    <div class="entry">
    
    <h2>My Blogroll</h2>
    	<ul>
    		<?php wp_list_bookmarks(); ?>
    	</ul>
    
    </div></div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Save it as bloglist.php and then assign it to your bloglist page.

    There are several arguments that can be passed to wp_list_bookmarks() so you may want to do some reading.

  18. richglor
    Member
    Posted 5 years ago #

    I need help - where do place track back on my blog. where do i get reciprocal url as link back to other blogs

  19. baal666
    Member
    Posted 5 years ago #

    @LenK: Are you sure that people on the bloglist will receive pingbacks each time I write a new post even if the blogroll is not displayed? I added my second blog, wrote a text on the first one and got no pingback from the first one...

  20. Len
    Member
    Posted 5 years ago #

    Are you sure that people on the bloglist will receive pingbacks each time I write a new post even if the blogroll is not displayed?

    One has nothing to do with the other. To be able to send and receive pingbacks make sure you have enabled them. Navigate to Settings > Discussion and at the top of the page you'll see Default article settings.

    Here's a screen capture.

  21. baal666
    Member
    Posted 5 years ago #

    @LenK: There are blogs from which I receive pingbacks each time they publish a post, even if they do not have any link in their post to my own blog... Why is that, and how to do the same?

  22. richglor
    Member
    Posted 5 years ago #

    You have not answered my question. I have trying to drive traffic to my web but each them these feeds or blogs always request that i paste a code on my website before they will activate my account with them. How do i paste code, banner of other website on my website. some have also asked for reciprocal url as a proof that i have attached their codes. How can u assist am a novice in all these. i do not know where to start from. Help please?

  23. Len
    Member
    Posted 5 years ago #

    You have not answered my question.

    Who are you that I have to answer your question?! Start your own bloody thread and quit hijacking others.

  24. richglor
    Member
    Posted 5 years ago #

    I wish u will be more polite. I don't know much about any thing here. i need a guide can you leave ur phone number so that u can help me. I have another article to submit. But i really which i could arrange all i have done properly and post accordingly. I am really confused about using this blog.

  25. baal666
    Member
    Posted 5 years ago #

    Thank you for your help LenK. Have a great Christmas! :)

  26. Len
    Member
    Posted 5 years ago #

    @baal666 - You're welcome!

    @richglor -

    I wish u will be more polite

    And I wish you do not demand answers. Nobody in this forum owes you anything.

    can you leave ur phone number so that u can help me

    No.

    Having said that these web sites that ask you to integrate their code into your site will usually give you instructions. Give us an example of which site is telling you to do this. With respect to reciprocal urls they want the URL of YOUR site where you inserted the code they gave you.

  27. baal666
    Member
    Posted 5 years ago #

    Hi again,

    I'd like to do the same with categories.

    Here is the page I created:

    <?php
    /*
    Template Name: Categories
    */
    ?>
    
    <?php get_header(); ?>
    
    <div id="content">
    <div class="entry">
    
    <?php wp_list_categories('show_count=1&title_li=<h2>Classification</h2>'); ?>
    
    </div></div>
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    However, I can't access the template from the "post a new page" page. It's simply not there... Any other way to make it work?

    Thanks

  28. baal666
    Member
    Posted 5 years ago #

    I really wonder if this hack works at all with 2.7...

  29. baal666
    Member
    Posted 5 years ago #

    *Bumpy bump*

    [moderated please refrain from bumping. See forum rules http://wordpress.org/support/topic/68664 ]

  30. baal666
    Member
    Posted 5 years ago #

    Sorry for bumping.

    Anyway, that was weird, but it took three days before the template could make it to the post page panel. Really weird, but now I have something to work on.

Topic Closed

This topic has been closed to new replies.

About this Topic