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 05-07-2012, 08:43 AM   #1
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
wordpress experts

Any way to use php inside a post? What I want to do is have a post, with an image linked to the permalink, using the if is_home to show the image on the main page, but not replicated on the single page.

Possible, or not?
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2012, 09:42 AM   #2
ottopottomouse
She is ugly, bad luck.
 
ottopottomouse's Avatar
 
Industry Role:
Join Date: Jan 2010
Posts: 13,177
Use the featured image bit

in index.php call for it
__________________
↑ 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 05-07-2012, 09:43 AM   #3
ottopottomouse
She is ugly, bad luck.
 
ottopottomouse's Avatar
 
Industry Role:
Join Date: Jan 2010
Posts: 13,177
http://codex.wordpress.org/Post_Thumbnails
__________________
↑ 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 05-07-2012, 09:43 AM   #4
kuda
Confirmed User
 
Join Date: Sep 2003
Location: Córdoba, Argentina
Posts: 31
Possible
__________________
Buy & Sell Ads on The Most Sexy Advertising Network on the Planet

available ad spots
| sign up now
kuda is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2012, 09:45 AM   #5
Fat Panda
Porn is Dead. Move along.
 
Fat Panda's Avatar
 
Industry Role:
Join Date: Aug 2006
Posts: 13,295
yes. very simple and easy
Fat Panda is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2012, 09:48 AM   #6
MediaGuy
Confirmed User
 
MediaGuy's Avatar
 
Industry Role:
Join Date: Sep 2004
Location: Montrealquebecanada
Posts: 5,500
Yeah you can surely use PHP in a post - why not? Wordpress is PHP based - though depending you might need to use the wp-includes folder....

What kind of PHP are you thinking? Is it ultra recent or not compliant to the most recent update for some reason?

:D
__________________

YOU Are Industry News!
Press Releases: pr[at]payoutmag.com
Facebook: Payout Magazine! Facebook: MIKEB!
ICQ: 248843947
Skype: Mediaguy1
MediaGuy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2012, 10:09 AM   #7
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
Quote:
Originally Posted by ottopottomouse View Post
Use the featured image bit

in index.php call for it
Quote:
Originally Posted by ottopottomouse View Post
Quote:
Originally Posted by MediaGuy View Post
Yeah you can surely use PHP in a post - why not? Wordpress is PHP based - though depending you might need to use the wp-includes folder....

What kind of PHP are you thinking? Is it ultra recent or not compliant to the most recent update for some reason?

:D
I fucking *suck* at anything even remotely difficult - I can't stress that enough. I've been looking at thumbnails, featured images, and can't make head nor tail of it.

Here's what I want to do:

Post Goes Here
blah text blah

<if is home php string>image linked to single-post<end php string>
<more>
video
more text
ad
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2012, 10:12 AM   #8
moeloubani
Confirmed User
 
moeloubani's Avatar
 
Industry Role:
Join Date: Dec 2007
Location: Ontario
Posts: 4,235
so you want it to show in the middle of the post or the bottom of the post?
moeloubani is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2012, 10:23 AM   #9
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
I want to display something on the home page within a post, but not on the permalink, within a post. Using the if is_home php string.

Inserting it into a post does not do it, it simply shows the code as text.
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2012, 10:45 AM   #10
ottopottomouse
She is ugly, bad luck.
 
ottopottomouse's Avatar
 
Industry Role:
Join Date: Jan 2010
Posts: 13,177
Not sure how to do it in the middle of the post. Calling the post thumbnail is usually before or after like

title
date stuff
image
post contents

You can't just put php in a post it would be a huge security risk if you had other posters than just the admin.
__________________
↑ 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 05-07-2012, 10:48 AM   #11
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
yeah, given up on trying to fuck about with it.
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2012, 11:18 AM   #12
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
just dont add the post thumb on single
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2012, 11:33 AM   #13
acrylix
Confirmed User
 
acrylix's Avatar
 
Industry Role:
Join Date: Oct 2006
Posts: 362
Quote:
Originally Posted by Jel View Post
Any way to use php inside a post?
There are various plugins which allow you to execute php in a post. For example:

http://wordpress.org/extend/plugins/shortcode-exec-php/

http://wordpress.org/extend/plugins/exec-php/
acrylix is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2012, 11:50 AM   #14
Coyote
Drinker of Scotch
 
Industry Role:
Join Date: May 2003
Location: Texas
Posts: 242
You don't need to execute php within a post to accomplish what you want. The easiest method is to create a short-code handler. Read about it here.

You would write your normal post, and embed the short-code where ever you want an image to appear, then continue writing your post content.

The short-code handler is 'similar' to a callback function and gets executed each time that post is displayed. For your intent, the short-code handler will test whether the post is displayed on the home page, and if true, will display the desired image. If it is false, it will simply remove the short-code you entered and return only the post content, without the image.
__________________
Ethernet Servers

Quote:
CS: Linux can pretty much run on a potato. Which is a GOOD thing.
Coyote is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2012, 02:28 PM   #15
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
exec-php plugin does what I want to do, with the small problem that the php code is still displayed in the post body..

Code:
<?php if ( is_home() ) { ?>
<a href="http://www.domain.com/?p=permalink"><img src="http://www.domain.com/xyz.jpg" border="0"></a>
some text
<?php } ?>
<!--more-->
image links to the permalink, image disappears on the permalink page, but above and below the image on the home page, the php code is visible. Not sure what that could be, being very thick when it comes to this stuff.
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2012, 03:17 PM   #16
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
http://forum.bytesforall.com/showthread.php?t=6232 is exactly what it's doing, though I have that unchecked anyway.
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2012, 03:25 PM   #17
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
ok it's the <!--more--> screwing it up ><
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2012, 03:38 PM   #18
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
fucks sake this is like the da vinci code. Is there/what is the full code that the quicktag <!--more--> relates to? I'm hoping to inser that, in full, and hopefully overcome the issue.
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2012, 03:51 PM   #19
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
http://wordpress.org/support/topic/t...-with-exec-php is that a fix? How does a thicko implement it?
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2012, 03:54 PM   #20
BSleazy
Confirmed User
 
Industry Role:
Join Date: Aug 2002
Location: USA
Posts: 6,721
I'm confused about what you're trying to do. Something like this?

bloggingxxx.com
__________________
icq 156131086
BSleazy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2012, 06:36 PM   #21
garce
Confirmed User
 
garce's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: Toronto
Posts: 7,103
Lots of help here. Viva La Wordpress as an easy to use CMS.
garce is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2012, 07:44 PM   #22
tonyparra
Confirmed User
 
tonyparra's Avatar
 
Industry Role:
Join Date: Jul 2008
Location: In your back seat with duck tape
Posts: 4,568
php code in a post? theres a plugin for that..oops see Exec-PHP already posted
__________________

High Performance Vps $10 Linode
Manage your Digital Ocean, Linode, or Favorite Cloud Server. Simple, fast, and secure Server Pilot

Last edited by tonyparra; 05-07-2012 at 07:46 PM..
tonyparra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-07-2012, 08:33 PM   #23
BSleazy
Confirmed User
 
Industry Role:
Join Date: Aug 2002
Location: USA
Posts: 6,721
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.
__________________
icq 156131086
BSleazy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-08-2012, 01:17 AM   #24
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
pretend I don't know how to use featured images, or how to include that on the home page but not single pages, nor understand the gobbledygook on http://codex.wordpress.org/Post_Thumbnails - what's the easiest step-by-step someone can give? I want to upload the pics via ftp and not have to use wp upload thingy.

Thanks
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-08-2012, 01:18 AM   #25
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
Quote:
Originally Posted by BCyber View Post
I'm confused about what you're trying to do. Something like this?

bloggingxxx.com
Yes, but not have the image and accompanying text show on the single post, just the video and anything after it.
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-08-2012, 01:27 AM   #26
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
Actually that Techline theme is pretty good, what's the difference between the free & paid version?
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-08-2012, 01:43 AM   #27
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
ignore that last question, I really should wake up properly before diving in to work
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-08-2012, 02:15 AM   #28
tonyparra
Confirmed User
 
tonyparra's Avatar
 
Industry Role:
Join Date: Jul 2008
Location: In your back seat with duck tape
Posts: 4,568
Quote:
Originally Posted by Jel View Post
pretend I don't know how to use featured images, or how to include that on the home page but not single pages, nor understand the gobbledygook on http://codex.wordpress.org/Post_Thumbnails - what's the easiest step-by-step someone can give? I want to upload the pics via ftp and not have to use wp upload thingy.

Thanks
you can upload via ftp and create a custom field? Im lost as to what you need but a statement like this <img src="/your-directory/<?php echo get_post_meta($post->ID,img name here, true); ?">

Then in every post you create the custom field and enter the image name.
__________________

High Performance Vps $10 Linode
Manage your Digital Ocean, Linode, or Favorite Cloud Server. Simple, fast, and secure Server Pilot

Last edited by tonyparra; 05-08-2012 at 02:17 AM..
tonyparra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-08-2012, 02:15 AM   #29
BSleazy
Confirmed User
 
Industry Role:
Join Date: Aug 2002
Location: USA
Posts: 6,721
Paid removes the footer links. I modded the one above so it looks a little different then then techline. Hit me up later when I wake up. If you show me your site/theme I'll tell you what exactly needs to be done. You really don't need any plugin to include php. Just need to mod the theme.
__________________
icq 156131086
BSleazy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-08-2012, 02:21 AM   #30
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
yeah techline (free) just crashed 2 sites I installed it on, host tech: causing PHP to hard stop and crash. It'd actually be ideal but I'm completely put off using it after that lol.

Tony - "a statement like etc" - again, I emphasize my tech idiocy. A statement where? I cannot stress enough just how dumbed down I need things to be
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-08-2012, 02:38 AM   #31
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
holy fuck, note to anyone reading this thread and tempted to try the Techline free theme: don't.
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-08-2012, 02:50 AM   #32
BSleazy
Confirmed User
 
Industry Role:
Join Date: Aug 2002
Location: USA
Posts: 6,721
Never had a problem...where did u get it from?
__________________
icq 156131086
BSleazy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-08-2012, 02:54 AM   #33
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
http://newwpthemes.com/techline-free-wordpress-theme/
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-08-2012, 03:02 AM   #34
BSleazy
Confirmed User
 
Industry Role:
Join Date: Aug 2002
Location: USA
Posts: 6,721
I'm setting up a new wp install and uploading the theme from that link. brb.
__________________
icq 156131086
BSleazy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-08-2012, 03:07 AM   #35
BSleazy
Confirmed User
 
Industry Role:
Join Date: Aug 2002
Location: USA
Posts: 6,721
http://www.bcyberseo.com/jel/
__________________
icq 156131086
BSleazy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-08-2012, 03:43 AM   #36
tonyparra
Confirmed User
 
tonyparra's Avatar
 
Industry Role:
Join Date: Jul 2008
Location: In your back seat with duck tape
Posts: 4,568
A theme caused you site to crash? Probably a conflict with a plugin etc

In your index.php or home.php file, the place where the image goes put <a href="your-link or permalink"><img src="/path/to/<?php echo get_post_meta($post->ID,custom field name, true); ?">"></a>

then in the post area add a custom field, the name is custom field name and the value is the image name. Note i dont thinks this is the easiest way just trying too help you with your question
__________________

High Performance Vps $10 Linode
Manage your Digital Ocean, Linode, or Favorite Cloud Server. Simple, fast, and secure Server Pilot
tonyparra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-08-2012, 03:46 AM   #37
tonyparra
Confirmed User
 
tonyparra's Avatar
 
Industry Role:
Join Date: Jul 2008
Location: In your back seat with duck tape
Posts: 4,568
Quote:
Originally Posted by BCyber View Post
I'm confused about what you're trying to do. Something like this?

bloggingxxx.com
i like that blog
__________________

High Performance Vps $10 Linode
Manage your Digital Ocean, Linode, or Favorite Cloud Server. Simple, fast, and secure Server Pilot
tonyparra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-08-2012, 03:59 AM   #38
ottopottomouse
She is ugly, bad luck.
 
ottopottomouse's Avatar
 
Industry Role:
Join Date: Jan 2010
Posts: 13,177
Quote:
Originally Posted by Jel View Post
ok it's the <!--more--> screwing it up ><
Ignore the more and use an excerpt on the index instead of the post contents http://codex.wordpress.org/Excerpt
__________________
↑ 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 05-08-2012, 06:58 AM   #39
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
yeah most likely a plugin tony - in which case the theme is no good to me unfortunately.

The other stuff - most likely a piece of piss, but I just don't read instructions well.

otto - same thing. I'll fuck this idea off, but a big thanks to everyone who attempted to help me
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-08-2012, 07:03 AM   #40
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
please dont install this theme, it has nasty virus code in it which cycles through all your themes and adds the code to every theme in the theme dir
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-08-2012, 07:03 AM   #41
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
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.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-21-2012, 02:52 PM   #42
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
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
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-21-2012, 02:54 PM   #43
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
Quote:
Originally Posted by BCyber View Post
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-22-2012, 01:09 AM   #44
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
morning bump
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-22-2012, 04:55 AM   #45
ottopottomouse
She is ugly, bad luck.
 
ottopottomouse's Avatar
 
Industry Role:
Join Date: Jan 2010
Posts: 13,177
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.
__________________
↑ 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 05-22-2012, 05:09 AM   #46
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
just dont call it from single.php
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-22-2012, 06:52 AM   #47
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
Quote:
Originally Posted by ottopottomouse View Post
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-22-2012, 06:54 AM   #48
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
yup that'll be it, thanks guys
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-22-2012, 06:58 AM   #49
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
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?
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-22-2012, 07:11 AM   #50
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
put <a href="<?php the_permalink();?>img code here</a>
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris 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.