Archive page with only titles of the posts (not the excepts or read more buttons)
-
I would like to make an archives page that only contains the titles of the posts where the tittles are links to the actual post as usual. (i.e. not having a “read more” button, nor the first lines of the post. I have been looking to plug-ins but did not find what I was looking for. In graphene I can set all except the possibility to skip the excerpt.
TIA
Jan Willem
Admin
Syahir;
I have followed up your suggestion but do not get the desired results.
My archive is listed with: http://leika.nl/wp/?m=2013&post_type=
I still get 2/3 lines of text that i want to skip.
Tips?
If your category is 2013 create a file named category-2013.php in your theme folder and add the following:
<div id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix post' ); ?>><div class="entry clearfix">
<?php /* Post title */ ?>
<h2 class="post-title entry-title">
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'graphene' ), the_title_attribute( 'echo=0' ) ); ?>"><?php if ( get_the_title() == '' ) { _e( '(No title)', 'graphene' ); } else { the_title(); } ?></a>
<?php do_action( 'graphene_post_title' ); ?></h2>
<?php /* Post meta */ ?>
<?php if ( $post_type->name != 'page' || is_user_logged_in() ) : ?>
<div class="post-meta clearfix">
<?php /* Edit post link, if user is logged in */ ?>
<?php if ( is_user_logged_in() ) : ?>
<p class="edit-post">
<?php edit_post_link( sprintf( __( 'Edit %s', 'graphene' ), $post_type->labels->singular_name ), ' (', ')' ); ?></p>
<?php endif; ?>
<?php do_action( 'graphene_post_meta' ); ?></div>
<?php endif; ?></div></div>Thank you chainkiller. I did not yet use the categories much, but after your suggestion I have decided to have various categories I would like to group my posts in and your code will help me getting the desired effect.
If you want the same result for all of your categories creating a loop-category.php file with the above code will apply the change to all categories, else you have to create a new file for all categories you want to change.
I just created this php file and put your code inside.
Viewing 7 posts - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.
