Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-18-2011, 09:19 PM   #1
xenigo
Confirmed User
 
Industry Role:
Join Date: Jan 2001
Location: Oakland, CA
Posts: 8,067
Wordpress question...

Posts on Engadget's main page will sometimes be a summary of the main article, maybe 150 words or so. Clicking Read More or the post's title will open the page that has the 1200+ word full article.

How do I that in Wordpress?
xenigo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2011, 09:23 PM   #2
baddog
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: the beach, SoCal
Posts: 107,089
<!--more-->
baddog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2011, 09:24 PM   #3
epitome
So Fucking Lame
 
epitome's Avatar
 
Industry Role:
Join Date: Jun 2009
Location: St. Petersburg, FL
Posts: 12,156
If the theme allows excerpts you use that field.

Otherwise, there is a button that lets you insert a read more line.
epitome is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2011, 09:34 PM   #4
AAB
Confirmed User
 
AAB's Avatar
 
Join Date: Apr 2009
Location: Alberta
Posts: 874
Code:
<?php the_excerpt(); ?>
AAB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2011, 09:40 PM   #5
xenigo
Confirmed User
 
Industry Role:
Join Date: Jan 2001
Location: Oakland, CA
Posts: 8,067
Quote:
Originally Posted by AAB View Post
Code:
<?php the_excerpt(); ?>
I'm not really sure how to implement this.
xenigo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2011, 09:45 PM   #6
Chris
Too lazy to set a custom title
 
Chris's Avatar
 
Industry Role:
Join Date: May 2003
Location: icq: 71462500 Skype: Jupzchris
Posts: 27,880
you should just have a button that will break your post for you...
__________________
[email protected]
Chris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2011, 09:50 PM   #7
AAB
Confirmed User
 
AAB's Avatar
 
Join Date: Apr 2009
Location: Alberta
Posts: 874
Do you want excerpts on your index page? You may need to modify one (or more) files of your theme if you're currently not getting that. It's very easy, though.

I'm gonna assume you want it on your index page and that at present time your index page displays full length posts. You will need to open your theme's Main Index Template file (index.php), search for the_content() and change it to the_excerpt. Voila... instead of having full posts on your front page, you will have excerpts. Of course, if you are using a caching plugin (such as WP Super Cache), you may need to dump the cache in order to see the changes.
AAB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2011, 09:51 PM   #8
xenigo
Confirmed User
 
Industry Role:
Join Date: Jan 2001
Location: Oakland, CA
Posts: 8,067
Quote:
Originally Posted by epitome View Post
If the theme allows excerpts you use that field.

Otherwise, there is a button that lets you insert a read more line.
I guess the default WP theme doesn't allow excerpts? I tried entering an excerpt and it doesn't seem to make any changes to the main page...
xenigo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2011, 09:54 PM   #9
Itchy
Datetronix.com
 
Itchy's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: Chill-A-Wack BC
Posts: 6,524
Quote:
Originally Posted by baddog View Post
<!--more-->
A few more details on the easy way
more - <!--more--> WordPress tag that breaks a post into "teaser" and content sections. Type a few paragraphs, insert this tag, then compose the rest of your post. On your blog's home page you'll see only those first paragraphs with a hyperlink ((more...)), which when followed displays the rest of the post's content.

__________________


ICQ: 2588560
Skype: Pornocop

Itchy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2011, 09:54 PM   #10
baddog
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: the beach, SoCal
Posts: 107,089
If you want it to work like the first article on http://www.gotbuddy.com/ use the code I pasted where you want the break.
baddog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2011, 09:58 PM   #11
xenigo
Confirmed User
 
Industry Role:
Join Date: Jan 2001
Location: Oakland, CA
Posts: 8,067
Quote:
Originally Posted by AAB View Post
Do you want excerpts on your index page? You may need to modify one (or more) files of your theme if you're currently not getting that. It's very easy, though.

I'm gonna assume you want it on your index page and that at present time your index page displays full length posts. You will need to open your theme's Main Index Template file (index.php), search for the_content() and change it to the_excerpt. Voila... instead of having full posts on your front page, you will have excerpts. Of course, if you are using a caching plugin (such as WP Super Cache), you may need to dump the cache in order to see the changes.
Here's what my index.php consists of:

PHP Code:
get_header(); ?>

        <div id="container">
            <div id="content" role="main">

            <?php
            
/* Run the loop to output the posts.
             * If you want to overload this in a child theme then include a file
             * called loop-index.php and that will be used instead.
             */
             
get_template_part'loop''index' );
            
?>
            </div><!-- #content -->
        </div><!-- #container -->

<?php get_sidebar(); ?>
<?php get_footer
(); ?>
xenigo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2011, 10:00 PM   #12
garce
Confirmed User
 
garce's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: Toronto
Posts: 7,103
Quote:
Originally Posted by xenigo View Post
I guess the default WP theme doesn't allow excerpts? I tried entering an excerpt and it doesn't seem to make any changes to the main page...
The default theme Twenty Ten? I coud be wrong because I have never used Twenty Ten, but...

Open loop.php and find this:
<?php the_content(); ?>

Replace it with this:
<?php the_excerpt(); ?>

When you make a post, the index page will show an abbreviated version of the post text.

For a better result:

When you finish your main post (in the WP editor), scroll down and enter an abbreviated version into the "Excerpt" field. Your front page will have a brief description, your main post will have the full text and content.
garce is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2011, 10:04 PM   #13
xenigo
Confirmed User
 
Industry Role:
Join Date: Jan 2001
Location: Oakland, CA
Posts: 8,067
Quote:
Originally Posted by Itchy View Post
A few more details on the easy way
more - <!--more--> WordPress tag that breaks a post into "teaser" and content sections. Type a few paragraphs, insert this tag, then compose the rest of your post. On your blog's home page you'll see only those first paragraphs with a hyperlink ((more...)), which when followed displays the rest of the post's content.

Sweet Jesus! This did it.

Thanks. I tried pasting <!--more--> into the post and that didn't do anything except for make that tag appear in the post itself. When I hit the "More" button on WP, that did the trick.

Sweet.
xenigo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2011, 10:05 PM   #14
baddog
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: the beach, SoCal
Posts: 107,089
Quote:
Originally Posted by xenigo View Post
Sweet Jesus! This did it.

Thanks. I tried pasting <!--more--> into the post and that didn't do anything except for make that tag appear in the post itself. When I hit the "More" button on WP, that did the trick.

Sweet.
Sorry . . . I figured you could not see it or something.
baddog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2011, 10:05 PM   #15
AAB
Confirmed User
 
AAB's Avatar
 
Join Date: Apr 2009
Location: Alberta
Posts: 874
Yeah, manual except is probably your best bet (see garce's post), even though it requires an extra step you will need to take each time you are making a new post. However you can manually create your excerpt (and you can add formatting to it), whereas the automatic one truncates the text (sometimes cutting off the sentence at a wrong spot) and strips all formatting.

Last edited by AAB; 01-18-2011 at 10:07 PM..
AAB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2011, 10:09 PM   #16
xenigo
Confirmed User
 
Industry Role:
Join Date: Jan 2001
Location: Oakland, CA
Posts: 8,067
Quote:
Originally Posted by baddog View Post
Sorry . . . I figured you could not see it or something.
I hadn't even looked on the tool bar. I didn't expect it to be there.

I figured the Excerpt function was something I'd have to enable externally from the post itself.
xenigo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-19-2011, 04:29 AM   #17
ottopottomouse
She is ugly, bad luck.
 
ottopottomouse's Avatar
 
Industry Role:
Join Date: Jan 2010
Posts: 13,177
Quote:
Originally Posted by xenigo View Post
Sweet Jesus! This did it.

Thanks. I tried pasting <!--more--> into the post and that didn't do anything except for make that tag appear in the post itself. When I hit the "More" button on WP, that did the trick.

Sweet.
Needs to be on html view to paste in <!--more-->
__________________
↑ see post ↑
13101
ottopottomouse is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-19-2011, 06:48 AM   #18
thebedshark
Registered User
 
thebedshark's Avatar
 
Industry Role:
Join Date: Jul 2009
Location: Orlando
Posts: 88
A big to the OP and everyone who responded, I was gonna be
looking today on how to do this on my own blog, and you guys hooked me up
already, awesome. Seems easier than I would of thought, thanks again.
__________________
Contact Info: ICQ: 561317340 Email: gfy (at) thebedshark.com - More Trades At TheBedShark
babesbycity.com - bigtittedgirls.com - explicitamateur.com - freehustlersex.com - hustlersexvideo.com - amateurteenphotos.com
thebedshark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-19-2011, 09:35 AM   #19
Django
So Fucking Banned
 
Industry Role:
Join Date: Jul 2010
Posts: 2,578
<!---->
Django is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.