![]() |
![]() |
![]() |
||||
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. |
|
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
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) M ![]()
__________________
MongerCash - This Asian program converts as hell!. Sign up! | Tons of Porn| Email: Jolly [at] pornpitstop (døt) com | Icq: 619 746 889 | |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#2 |
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' ); ?> |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
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? M ![]()
__________________
MongerCash - This Asian program converts as hell!. Sign up! | Tons of Porn| Email: Jolly [at] pornpitstop (døt) com | Icq: 619 746 889 | |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#4 |
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 »'); ?> 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 »</p>'); ?> |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#5 |
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'); ?> |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Mar 2011
Location: Norway
Posts: 400
|
Thanks for your reply
![]() M ![]()
__________________
MongerCash - This Asian program converts as hell!. Sign up! | Tons of Porn| Email: Jolly [at] pornpitstop (døt) com | Icq: 619 746 889 | |
![]() |
![]() ![]() ![]() ![]() |