GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   wordpress experts (https://gfy.com/showthread.php?t=1067303)

fris 05-08-2012 07:03 AM

plus if you just dont wanna include thumb on full post, running a php exec plugin is a very bad idea. stay far away from that as possible.

Jel 05-21-2012 02:52 PM

ok this is driving me bonkers...

I set featured-images, and assign full path to image for that

index.php I have this code:

Code:

<?php the_post_thumbnail( array (640,480) );?>         
         
        <?php the_content(__('Read more'));?><div style="clear:both;"></div>

and get fuck all show, so assumed it was because it's a custom field and not 'set featured image' so used:

Code:

<?php get_post_custom_values("featured-images")( array (640,480) );?>
and a ton of other variations with no joy. I'm fairly sure this must be pretty simple, but I'm absolutely fucked if I can figure it out, help appreciated :thumbsup

Jel 05-21-2012 02:54 PM

Quote:

Originally Posted by BCyber (Post 18935051)
Ya after re-reading this, all you need to do is use featured images on your main page (index.php) and don't add them to single.php.

This - what's the code to insert in the loop?

Jel 05-22-2012 01:09 AM

morning bump :)

ottopottomouse 05-22-2012 04:55 AM

CUSTOM-FIELD-NAME filled out with image address

Code:

<img src="<?php echo get_post_meta($post->ID, 'CUSTOM-FIELD-NAME', true); ?>" alt="" height="480" width="640" />
Can call another field for the alt tag or create something related to the post title etc.

fris 05-22-2012 05:09 AM

just dont call it from single.php

Jel 05-22-2012 06:52 AM

Quote:

Originally Posted by ottopottomouse (Post 18958967)
CUSTOM-FIELD-NAME filled out with image address

Code:

<img src="<?php echo get_post_meta($post->ID, 'CUSTOM-FIELD-NAME', true); ?>" alt="" height="480" width="640" />
Can call another field for the alt tag or create something related to the post title etc.

fris - gotcha

otto - so:

Code:

<img src="<?php echo get_post_meta($post->ID, 'featured-images', true); ?>" alt="" height="480" width="640" />
in this case I presume?

Jel 05-22-2012 06:54 AM

yup that'll be it, thanks guys :thumbsup

Jel 05-22-2012 06:58 AM

1 thing - what would I use to have that image linked to the permalink?wrap a href around that img srcobviously, but the actual php code?

fris 05-22-2012 07:11 AM

put <a href="<?php the_permalink();?>img code here</a>

Jel 05-22-2012 07:58 AM

awesome, got it working :) thanks again :thumbsup


All times are GMT -7. The time now is 05:03 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123