Joe Hall
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Displaying Custom Fields One At a Time.Ok, I actually tried it this time before closing out! And it works great! Thanks alot for your help!!
Forum: Fixing WordPress
In reply to: Displaying Custom Fields One At a Time.Ok,I know that I already marked this as resolved but I actually went and tried everything and things didn’t work, all I got was an image tag wit “Array” where the custom feild key is supossed to go. In other words when I use this code:
<img src="https://www.theotherserver.com/images/<?php echo get_post_custom_values("image-key") ?>.jpg">
I end up with:
<img src="https://www.theotherserver.com/images/Array.jpg">
Any Ideas?
Forum: Fixing WordPress
In reply to: Displaying Custom Fields One At a Time.Thank you, after I typed out my last explanation I thought “hmmm….echo?” and sure enough I was right! Thanks again! Thank god for the support forums!
Forum: Fixing WordPress
In reply to: Displaying Custom Fields One At a Time.I am pulling alot of data off of another server and displaying it on wordpress. Most of what is being pulled off, are pictures. Every picture that I am working with has a unique URL that follows a standard format such as:
www.theotherserver.com/images/198747.jpg
I have gotten permission to “hotlink” these pictures from the other server. Up until this point I have been just writing new IMG tags eachtime I want to hotlink. But I am tired of doing that so I want to write some code like:<img src="www.theotherserver.com/images/<?php get_post_custom_values($key) ?>.jpg">
So that all I have to do is type in 198747 in a custom field area. That is why I asked about displaying one key at a time because I have many custom fields for each post but I only want one inserted into the IMG tag. Is any of this possible?
Forum: Fixing WordPress
In reply to: Displaying Custom Fields One At a Time.Thank you Otto. However, when I use
<?php get_post_custom_values($key) ?>
in my templates nothing appears…any ideas?Forum: Fixing WordPress
In reply to: Displaying Custom Fields One At a Time.Thank you both. According to the post that you just refered me to it appears that
get_post_custom_values($key)
is what i am going to have to use. However, below that section it says thatthe_meta()
is the only template function regarding custom fields, is this true? and if so does that mean that I can’t useget_post_custom_values($key)
in my templates?Forum: Fixing WordPress
In reply to: Add a class to an imageCan I do the same thing to add a custom “rel” attribute for use with Lightbox 2? When using Lightbox 2 each thumbnail link requires
rel="lightbox"
Can I do something simular to get this done? A more detailed description of what i am talking about can be found here.Forum: Fixing WordPress
In reply to: Automatically add “rel” attribute to upload code?Thank you Moshu for the help with the backticks, now, I will re-post my original question:
I want to edit the code that inserts attachments into a post to include a “rel” attribute to image thumbnail links. In other words. I want my image thumbnail links to automatically include a “rel” attribute. So that…
<a href='https://www.example.com/wp-content/uploads/2007/06/example.JPG' title='example.JPG'><img src='https://www.example.com/wp-content/uploads/2007/06/example.thumbnail.JPG' alt='example.JPG' /></a>
Looks like:
<a rel='example' href='https://www.example.com/wp-content/uploads/2007/06/example.JPG' title='example.JPG'><img src='https://www.example.com/wp-content/uploads/2007/06/example.thumbnail.JPG' alt='example.JPG' /></a>
I want the rel attribute to be added to the code automatically so that I don’t have to go back and edit the html everytime I embed a picture. Anyone have any idea how this can be done?
Forum: Fixing WordPress
In reply to: Automatically add “rel” attribute to upload code?ok, for some reason, I can’t get the code to look right above. Please bare with me and ask questions if needed.
Forum: Fixing WordPress
In reply to: Developing Custom Link QuicktagsWow, that was quick! Thanks Moshu!
Forum: Fixing WordPress
In reply to: How do I select different Page TemplatesAs I assumed, it was something reletively simple that I was over looking. Thank you for your help!
Forum: Fixing WordPress
In reply to: How do I select different Page TemplatesThank you for your help, however, I already understand everything that you have said. I think that perhaps I need to better clarify my question…
MichaelH states,
…change the Page Template to point to the respective template (mypage1.php or mypage2.php).
My question is how do I do this? When I write a page, I see no options at all to select a template or theme to use….I know that the answer to my problem is problaby quite elementry, but I am still lost.
Forum: Your WordPress
In reply to: WordPress NewbieAwesome theme and topic, I like kung fu as well!
Forum: Fixing WordPress
In reply to: How do I Display a Post Categories?Awesome! Thanks!
Forum: Fixing WordPress
In reply to: How do I edit the_excerpt?Thanks I was able to clear that up perfectly! And just for future reference the wp_trim_excerpt function begins on line 772 in formatting.php in v. 2.1.3