Okay I have a blog (link in my sig) that I sell ads on. I need to find some way to make it so that when a user goes to the categories, they can only see post links, not descriptions. It's killing my business because they see all the content and not the ad at the bottem. So they dont bother clicking, just reading straight from the categories page. Is there some way to fix this? Please help me!
There is a template out there that will let you plant the adds between the posts. Right at this minute I can not recall the name of it.
You probably need to edit the category.php file in your theme editor.. I could probably do it for you for a small fee. PM if interested..
Wordpress is fully customisable. Why should it ruin you? You can control it as you want. Instead of showing entire post show only the excerpt or simply just the title as you have said. You have to edit category.php file in your theme folder. The example code below will show only excerpt - it uses <?php the_excerpt(','); ?> PHP: instead of <?php the_content("<br />" . "continue reading " . """ . the_title('', '', false) . """); ?> PHP: <div class="post_meta" id="post-<?php the_ID(); ?>"> <div class="post_title"> <div class="post_permalink"> <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1> <span class="author">Posted By: <?php the_author_posts_link(); ?> <?php edit_post_link(__(' Edit'), '|', ''); ?></span> <span class="category">Permalink in <?php the_category(', ') ?></span> <?php if(function_exists("UTW_ShowTagsForCurrentPost")) : ?> <span class="category"><?php UTW_ShowTagsForCurrentPost("commalist", array('last'=>' and %taglink%', 'first'=>'tag in %taglink%',)) ?></span> <?php endif; ?> </div> <div class="post_date"><p class="days"><?php the_time('j'); ?></p><p class="month"><?php the_time('M'); ?></p></div> </div> <div class="post_content"><?php the_excerpt(','); ?></div> <div class="post_commented"><a href="<?php comments_link(); ?>"><?php comments_number('no comment','1 comment','% comments'); ?></a></div> </div> PHP: Or you may simply show the title by not displaying the post content. exclude the line of php that calls post content. Codes shown here are for example. it will not look exactly like your theme code. but things are same more or less. use ur common sense and u ll know. by the way, aren't you showing ads on ur category archive page? u can do that by inserting ad code in category.php
It seems Nipon has given a good solution. In case you don't want to edit the code ( or you are uncomfortable editing it) you can download some theme which only shows post title in categories by default. An example of that is theme which am using in my blog. http://www.meetarpit.com. Its a simple widget ready theme, and its download page link and credits are in footer.
I have no category.php file in my theme folder or theme editor. And theres no download link for the template arp gave me.
ok let us know what files you have in your theme. probably you have an archive.php which you need to edit
Ok Sorry.. I thought you will be able to search it out by theme name and author site (both are in footer) Here is the theme page. http://themes.wordpress.net/columns/3-columns/1419/nonzero-green/ ENJOY.
Here are the files I have: And here is my archives.php file: <?php /* Template Name: Archives */ ?> <?php get_header(); ?> <div id="content" class="widecolumn"> <?php include (TEMPLATEPATH . '/searchform.php'); ?> <h2>Archives by Month:</h2> <ul> <?php wp_get_archives('type=monthly'); ?> </ul> <h2>Archives by Subject:</h2> <ul> <?php wp_list_cats(); ?> </ul> </div> <?php get_footer(); ?> PHP: What do I need to edit? I'd rather keep my template =] Thankyou so much!
No need to edit archives.php you need to edit archive.php in case ur theme does'nt have archive.php then according to the hierarchy wordpress ll look in index.php - in that case u have to edit index.php by the way, why not give a link to the theme so that i can download and have a look at it. ur site is the one in ur sig? i dont think it is using wordpress
you mean copy archive.php and rename it into catgory.php You might think of having a seperate home.php following the same idea or use the exerpt example that Nipon said