jp612 Posted January 25, 2010 Report Share Posted January 25, 2010 I was just reading through this howto http://codex.wordpress.org/Creating_an_Archive_Index For wp 1.5+ it says to upload the archives.php to the themes directory. I dont really get this because i already have a default archives.php in my themes folder. Would that work? Do i have to do anything to it? Quote Link to comment Share on other sites More sharing options...
Susie Posted January 25, 2010 Report Share Posted January 25, 2010 What code is in your archives.php file now? Quote Link to comment Share on other sites More sharing options...
jp612 Posted January 25, 2010 Author Report Share Posted January 25, 2010 <?php } elseif (is_year()) { ?>^M <?php printf(__('Archive for %s', 'monochrome'), get_the_time(__('Y', 'monochrome'))); ?>^M^M <?php } elseif (is_author()) { ?>^M <?php _e('Author Archive', 'monochrome'); ?>^M^M <?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>^M <?php _e('Blog Archives', 'monochrome'); ?>^M<?php } ?>^M ^M^M <?php while ( have_posts() ) : the_post(); ?>^M ^M ^M <?php the_title(); ?>^M ^M <?php the_time(__('F jS, Y', 'monochrome')) ?>^M <?php _e('Posted in ','monochrome'); ?><?php the_category(' . '); ?>^M <?php if ($options['author']) : ?><?php _e('By ','monochrome'); ?><?php the_author_posts_link(); ?><?php endif; ?>^M <?php edit_post_link(__('[ EDIT ]', 'monochrome'), '', '' ); ?>^M ^M <?php the_excerpt_rss(); ?><?php _e('[ READ MORE ]', 'monochrome'); ?>^M ^M^M <?php endwhile; else: ?>^M ^M <?php _e("Sorry, but you are looking for something that isn't here.","monochrome"); ?>^M ^M<?php endif; ?>^M ^M <?php include('navigation.php'); ?>^M ^M ^M ^M ^M <?php get_sidebar(); ?>^M ^M ^M ^M ^M<?php get_footer(); ?> Quote Link to comment Share on other sites More sharing options...
falkencreative Posted January 25, 2010 Report Share Posted January 25, 2010 Based on that, it seems like the theme you are using already has an archive index. Quote Link to comment Share on other sites More sharing options...
Susie Posted January 25, 2010 Report Share Posted January 25, 2010 Are you trying to create an archive page? Meaning, a separate page in your website that lists your archive? If so, you'll need to add the following to the very top of your archives.php file. /* Template Name: Archives */ ?> Quote Link to comment Share on other sites More sharing options...
jp612 Posted January 25, 2010 Author Report Share Posted January 25, 2010 well i try to follow the howto but i cant create a archive page. I sort of want a browsing index so users can look through all blogs in different categories , listed alphabetically... Quote Link to comment Share on other sites More sharing options...
Susie Posted January 25, 2010 Report Share Posted January 25, 2010 I'm using the Dagon Design Sitemap Generator on my own website. It works well and you can configure it to show only posts in their categories if you want. http://www.dagondesign.com/articles/sitemap-generator-plugin-for-wordpress/ Quote Link to comment Share on other sites More sharing options...
jp612 Posted January 25, 2010 Author Report Share Posted January 25, 2010 Yeah i what i want is to create a sidebar menu showing categories and also have the posts under it show up in my browse archive under different categories and also keep the posts in sync e.g when i open a post in the browse archive it should have all the comments that it did under a different category in the sidebar. Also i want the posts in the sidebar to disappear after a certain amount have been published. the ones that are gone will still however be in the browse archive. Would the plugin do this? i'm sorry to make this so confusing :| Quote Link to comment Share on other sites More sharing options...
Susie Posted January 25, 2010 Report Share Posted January 25, 2010 I don't think I understand exactly what you're looking for. To see what this plugin can do, visit my sitemap (page 2) to see the blog posts listed per category: http://tinyurl.com/yku7x34 . To add the archive to your sidebar, you should be able to just drag and drop the appropriate widget in Appearance > Widgets. Quote Link to comment Share on other sites More sharing options...
jp612 Posted January 25, 2010 Author Report Share Posted January 25, 2010 yeah that looks like what im after... is the portfolio made up of posts? Quote Link to comment Share on other sites More sharing options...
jp612 Posted January 25, 2010 Author Report Share Posted January 25, 2010 i wanted the categories to appear on a page in the middle so you can click on them and half all recent blogs on the side bar listed in their catergories. sort of like this: w ww.amazon.com/Subjects-Books/b/ref=sv_b_1?ie=UTF8&node=1000 Quote Link to comment Share on other sites More sharing options...
Susie Posted January 25, 2010 Report Share Posted January 25, 2010 No, my portfolio is just a regular WordPress page. Quote Link to comment Share on other sites More sharing options...
jp612 Posted January 25, 2010 Author Report Share Posted January 25, 2010 Want to run the plugin from a template file? To use the sitemap generator function directly from a template file, just insert the following line where you would like the sitemap to be generated: <?php echo ddsg_create_sitemap(); ?> Where do i put this to get it working?? Not in the website in wordpress admin or?? Quote Link to comment Share on other sites More sharing options...
jp612 Posted January 26, 2010 Author Report Share Posted January 26, 2010 ok i've got it... phew is there anyway to make it that you click the category first and then the posts show up? I'm trying to make it 100% user friendly. i really need to up my php skills more :/ Quote Link to comment Share on other sites More sharing options...
newseed Posted January 26, 2010 Report Share Posted January 26, 2010 Go to wordpress.org site and search for plugins in this regard. There are number of plugins that might give you what you are looking for. Here's one I found recently that might be worth looking into: http://codex.wordpress.org/Template_Tags/wp_list_categories Quote Link to comment Share on other sites More sharing options...
jp612 Posted January 26, 2010 Author Report Share Posted January 26, 2010 yeah but my archive is made with the plugin listed above so i dont know if other plugins would do that. Ill try the tag though. thanks Quote Link to comment Share on other sites More sharing options...
jp612 Posted January 26, 2010 Author Report Share Posted January 26, 2010 could i use the template and put it in the plugins PHP file?? Quote Link to comment Share on other sites More sharing options...
jp612 Posted January 27, 2010 Author Report Share Posted January 27, 2010 (edited) Are you trying to create an archive page? Meaning, a separate page in your website that lists your archive? If so, you'll need to add the following to the very top of your archives.php file. <?php /* Template Name: Archives */ ?> I've tried this but all it shows is my archive page?? i want it to list catergories. No posts or pages I installed the http://www.dagondesign.com/articles/sit ? wordpress/ but it shows the catergories with posts underneath i want to show only catergories. how do i do this?? Edited January 27, 2010 by jp612 Quote Link to comment Share on other sites More sharing options...
lm Posted January 27, 2010 Report Share Posted January 27, 2010 make search on wp magazine theme and choose one that does what are you looking for.;activate this template and see what snippet is used to do what you want to achieve. Or: Standard wp template SHOWS list of categories on a side bar - just use the code for it for the archive page. Quote Link to comment Share on other sites More sharing options...
jp612 Posted January 29, 2010 Author Report Share Posted January 29, 2010 make search on wp magazine theme and choose one that does what are you looking for.;activate this template and see what snippet is used to do what you want to achieve. Or: Standard wp template SHOWS list of categories on a side bar - just use the code for it for the archive page. Ahh yea true!! I'm going to have a peek at the sidebar.php file and see if i can find the code. Please do correct me if im looking in the wrong place Quote Link to comment Share on other sites More sharing options...
jp612 Posted January 30, 2010 Author Report Share Posted January 30, 2010 Yep that done it i got the php tag that does the sidebar and put it in my archive.php file. <?php _e('Browse Books','monochrome'); ?> <?php wp_list_cats('sort_column=name'); ?> ^M thats what makes it do that. Thanks all. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.