Wordpress Display Title Only

WhiteOut

New Member
Messages
111
Reaction score
0
Points
0
How can I make wordpress only show the titles of posts instead of the whole post? I made a tutorial website and I dont want people to have to look at every tutorial to find one they want.
 

pgames

New Member
Messages
217
Reaction score
0
Points
0
Simple way to do it is to use the "more" tags or type "<!--more-->" in the coding section.

Use "<!--more-->" at the top of your posts.
This will make people see on your site the name of the post and it'll just say "read this entry" right under it.
when u click read this entry you'll be able to access the full article.

Click my the link for my site in my signature for an example. ( I use wordpress, too)
 
Last edited:

WhiteOut

New Member
Messages
111
Reaction score
0
Points
0
Thanks. Is there a way to make it insert the <!--more--> tag automaticly, because Im not the only author. Anyone who registers is an author. BTW - Nice site. Its weird because I just found out about portable applications yesterday and installed a lot. Ill see if you have any that I dont already have.
 

pgames

New Member
Messages
217
Reaction score
0
Points
0
60997663zs1.png


U can click the thing i indicated above to insert the tag automatically.
 
Last edited:

WhiteOut

New Member
Messages
111
Reaction score
0
Points
0
But wont that just add it to that post? I need it to automaticly add to all the posts, so I dont have to tell everyone that registers to use the more tag.
 

kkenny

Active Member
Messages
1,950
Reaction score
0
Points
36
Go search for a plugin that automatically ads code before every single post (commonly used for advertising purposes) That could work.

or enforce that ethic upon your staff x]
 

javayathzee

New Member
Messages
38
Reaction score
0
Points
0
The plugin shouldn't be that hard. You might also be able to find (or edit) a theme that will let you just display the title. check out the irc chat for wordpress and you will probably get an answer (irc://freenode.net/#wordpress)
 

WhiteOut

New Member
Messages
111
Reaction score
0
Points
0
I found a plugin that inserts adsense codes into posts automaticly. Im trying to edit it to just insert the more tag. This would be a lot easier if I knew PHP... lol. Thanks for the help. Im going to see if my friend can edit it for me.
 

StephenCronin

New Member
Messages
6
Reaction score
0
Points
0
How can I make wordpress only show the titles of posts instead of the whole post? I made a tutorial website and I dont want people to have to look at every tutorial to find one they want.

Plugins that insert code probably won't help, because they inserts the code after WordPress has processed the more tag. Cat's already out of the bag so to speak by then.

You need to edit the index.php for your theme and find the

Code:
<?php the_content('Read the rest of this entry &raquo;'); ?>
line. Note, yours may have a different message - you're really looking for the line that has the_content. That's the bit which calls the body of the post. Remove this line and the body will no longer be shown, just the title and the author and date etc.

To edit the file, you may be able to edit it through WordPress directly, in the Presentation -> Theme Editor page. Otherwise, FTP into your site and download index.php from the wp-content/themes/<yourtheme> directory, edit it, and FTP it back up overwriting the original.

NOTE: Before you make any changes, make sure you have a copy to put back if things go wrong and backup your site if possible.
 

WhiteOut

New Member
Messages
111
Reaction score
0
Points
0
That made it show just the titles on the homepage, but I need it to show in the categories too. How can I do that?
 

StephenCronin

New Member
Messages
6
Reaction score
0
Points
0
You need to do the same thing in archive.php. Look for the line with the_content and remove it. That will change Categories, Tags, Date Archives and Author Pages. You may need to do the same thing in search.php IF search results shows the_content (my theme doesn't, but yours may).

Hope that helps.
 
Top