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.

 

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 08-30-2011, 04:12 PM   #1
jollyhumper
Confirmed User
 
jollyhumper's Avatar
 
Industry Role:
Join Date: Mar 2011
Location: Norway
Posts: 400
How can one make money when all time goes into.....AAAaRGH! (Wordpress-question)

All I want to do is to make some nice pages that will hopefully make people go nuts over the stuff they see and run to the affililate faster than... something fast.

But hey, I feel most of the time I'm only struggling with shit that steals all the time.

For instance: Post Thumbnail function that came with 2.9.
Well, I've been reading, testing, searching, reading more,testing for 6hours now.
The fucking "hooray, we have post thumbnail" is a big SCAM!

Well, probably not.

I want a thumbnail on the frontpage and when I click it I get's into the article.
How freaking difficult does they have to make it?

The "posted thumbnail" have been all over the fucking site, but it has not done what I want them to.

anyone? Please?

I'm using the Weaver2.2.4 theme (wpweaver.info)

Mrten
__________________
MongerCash - This Asian program converts as hell!. Sign up! |

Tons of Porn
|
Email: Jolly [at] pornpitstop (døt) com | Icq: 619 746 889 |
jollyhumper is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 08-30-2011, 05:56 PM   #2
mromro
So Fucking Banned
 
Industry Role:
Join Date: Jan 2011
Posts: 770
add this to your functions.php

add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 50, 50, true ); // Normal post thumbnails
add_image_size( 'single-post-thumbnail', 400, 9999 ); // Permalink thumbnail size

// THIS LINKS THE THUMBNAIL TO THE POST PERMALINK

add_filter( 'post_thumbnail_html', 'my_post_image_html', 10, 3 );

function my_post_image_html( $html, $post_id, $post_image_id ) {

$html = '<a href="' . get_permalink( $post_id ) . '" target="_parent" title="' . esc_attr( get_post_field( 'post_title', $post_id ) ) . '">' . $html . '</a>';

return $html;
}



put this where ever you want the thumbnail

<?php the_post_thumbnail(); ?>

Put this on your single post

<?php the_post_thumbnail( 'single-post-thumbnail' ); ?>

Last edited by mromro; 08-30-2011 at 05:57 PM..
mromro is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 08-30-2011, 07:14 PM   #3
jollyhumper
Confirmed User
 
jollyhumper's Avatar
 
Industry Role:
Join Date: Mar 2011
Location: Norway
Posts: 400
Thanks! This code makes more sense than a lot of examples I've seen.

But where do I put the "put thumb" and "put single-post" at the end?
In the post? in another PHP?

Mrten
__________________
MongerCash - This Asian program converts as hell!. Sign up! |

Tons of Porn
|
Email: Jolly [at] pornpitstop (døt) com | Icq: 619 746 889 |
jollyhumper is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 08-30-2011, 07:47 PM   #4
mromro
So Fucking Banned
 
Industry Role:
Join Date: Jan 2011
Posts: 770
just before or after the content of the post or main page
in the indes.php

<p align="center"><?php the_post_thumbnail(); ?></p>
<?php the_content('Read the rest of this entry &raquo;'); ?>

in the single.php

<p align="center"><?php the_post_thumbnail('single-post-thumbnail'); ?></p>
<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>

Last edited by mromro; 08-30-2011 at 07:50 PM..
mromro is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 08-30-2011, 07:55 PM   #5
mromro
So Fucking Banned
 
Industry Role:
Join Date: Jan 2011
Posts: 770
You can also set the size of the thumbs in wordpress.
Dashboard
Settings
Media
then make the sizes you want and use these codes to call them up

<?php the_post_thumbnail('thumbnail'); ?>
<?php the_post_thumbnail('medium'); ?>
<?php the_post_thumbnail('large'); ?>
mromro is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 08-31-2011, 03:32 PM   #6
jollyhumper
Confirmed User
 
jollyhumper's Avatar
 
Industry Role:
Join Date: Mar 2011
Location: Norway
Posts: 400
Thanks for your reply

Mrten
__________________
MongerCash - This Asian program converts as hell!. Sign up! |

Tons of Porn
|
Email: Jolly [at] pornpitstop (døt) com | Icq: 619 746 889 |
jollyhumper is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
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.