jlau
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to generate different images per page?I took out the image like you suggested and implemented the only the “the_post_thumbnail().” It’s a blank now, which I guess is a good thing. But how does it know which pic goes with each page?
Thanks!
Forum: Fixing WordPress
In reply to: How to generate different images per page?I actually have the the_post_thumbnail embedded into my code.
My only confusion is trying to understand what this code means:
<?php if ( has_post_thumbnail()) : ?> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > <?php the_post_thumbnail(); ?> </a> <?php endif; ?>Thanks!
Forum: Fixing WordPress
In reply to: How to generate different images per page?[Code moderated as per the Forum Rules. Please use the pastebin]
Forum: Fixing WordPress
In reply to: How to generate different images per page?Sorry this was the site example that I was looking at: http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/
Forum: Fixing WordPress
In reply to: How to generate different images per page?This post comment is extremely hacked up. So pardon the confusion.
I looked into this before. This was the site I was looking at the code: but does all this mean?
$default_attr = array( 'src' => $src, 'class' => "attachment-$size", 'alt' => trim(strip_tags( $attachment->post_excerpt )), 'title' => trim(strip_tags( $attachment->post_title )), );I would assume I plug the
<?php the_post_thumbnail( $size, $attr ); ?>into my <img src=””/> tag? Should I use the ? If so, in the example it asks you to plug in “<?php echo get_the_post_thumbnail($page->ID, ‘thumbnail’); ?>”I know what $page->ID means, but how does the code know which page i am specifically in?
Thanks!
Forum: Fixing WordPress
In reply to: How to generate different images per page?Is there a way to pull the images from the folder, but not in “random” order? The sidebar navi is a template tag piece that lives on every page, but the image/thumbnail above the navi should be dynamic. Meaning the “about” page is one specific image, the “meet us” page has a specific image, and so on….
Thanks!
Forum: Fixing WordPress
In reply to: How to generate different images per page?Thanks for replying back to me so soon!
I totally agree with you, but that’s exactly what I’d like to know. The images currently reside in the “images” folder, but how do I ask the loop or the function to pull them?
Forum: Themes and Templates
In reply to: The_meta and wp_get_post_image not showing on page that has blogI’m new to WordPress and I just started gutting up an HTML site into PHP WordPress format. The images that you pulled in on each page, are they dynamically driven by a single PHP function (wp_get_post_image)?
How did you setup the piece in order for this to work?