Hi,
I'm subbing for our web guy for a little while, but unfortunately I'm not a wordpress pro. I had a question about a modification the boss is interested in.
We have a link to a blog from our hope page that actually just links to a category. When you click the link, the proper posts show up but they are only snippets (plus none of the hyperlinks are active). I want to be able to click the link to the blog and have the full blog posts show up instead. How can I go about doing this?
Website in question: http://psschina.com/category/whits-china-business-blog/
Redcentaur
Member
Posted 2 years ago #
This is fairly simple to change. Go to wp-admin and find Appearance/Editor.
Click on the template for the posts page (usually index.php) and find 'The Loop' which will look something like this (an extract):
<?php if(have_posts()): ?><?php while(have_posts()): the_post(); ?> >
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="entry">
<?php the_excerpt(); ?>
...
The line you are looking for is <?php the_excerpt(); ?>, which you will need to change to <?php the_content(); ?>
That's it. You should now see the full text of each post.
Regards
Glenn
Redcentaur
Try replacing the_excerpt() with the_content() in the relevant category template. If you only want to customise this particular catgeory, you may have to begin by creating a category template just for this category.
http://codex.wordpress.org/Category_Templates
hi
Your theme files will be in folder wp-content/themes/agent_30/
In that folder, if you have a file named category.php, open it in an editor (you can use the online WP theme editor in the WP admin if you don't have access to an editor). Admin/ Appearance / Editor
Find in that page the_excerpt()
Change that to the_content('Read more');
Save the file - if you used a local editor, upload the changed file back to the server.
If you don't have a category.php file, try archive.php