Jump to content

Recommended Posts

Posted

<?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(); ?>

Posted

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
*/
?>

Posted

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...

Posted

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 :|

Posted

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.

Posted

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

Posted

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??

Posted

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 :/

Posted (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 by jp612
Posted

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.

Posted
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 :)

Posted

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.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...