docbrandes
Forum Replies Created
-
Forum: Hacks
In reply to: get_the_post_thumbnail hackThanks again … it looks like that kicks out the code exactly has it should. However I’ve discovered that the slide captions break when they have anchor tags surrounding the images. That’s unfortunate…
Forum: Hacks
In reply to: get_the_post_thumbnail hackThanks alchymyth, it seems to be outputting correctly:
<img width=”600″ height=”450″ src=”http://www.theperfectlyhappyman.com/uploads/wychwood-king-goblin-600×450.jpg” class=”attachment-medium wp-post-image” alt=”Wychwood King Goblin” title=”Wychwood King Goblin” data-caption=”#htmlCaption” />
The demo page I’m working on can be found at http://www.theperfectlyhappyman.com/orbit-demo
If it’s outputting correctly, I’m wondering if there’s something amiss with the Orbit plugin? Those captions just will not show up!
Forum: Hacks
In reply to: get_the_post_thumbnail hackStill not working for me. Here’s my code:
[please read http://codex.wordpress.org/Forum_Welcome#Posting_Code for posting code]
<div id=”featured”>
<?php $tout_query = new WP_Query(‘cat=&showposts=5’); ?>
<?php while ($tout_query->have_posts()) : $tout_query->the_post(); ?>
“><?php echo get_the_post_thumbnail( $id, ‘medium’, array(‘data-caption’ => ‘#postTitle’)); ?>
<?php endwhile; ?>
</div><span class=”orbit-caption” id=”postTitle”><?php the_title(); ?></span>
The span at the bottom uses the postTitle id, and inserts a caption into the image (in this case I’m calling the post title as the caption).
It works if I don’t use get_the_post_thumbnail and instead use a basic <img> tag as follows:
<img src=”/uploads/test-image.jpg” data-caption=”#postTitle” />
…but this is in a loop, so I want it to pull dynamically. Any other ideas for inserting that “data-caption=’#postTitle'” into get_the_post_thumbnail?
Forum: Hacks
In reply to: Multipage get_categories functionI have this same issue … I’m using a get_categories array and am returning a list of 100+ cats, so I want to paginate the list. Please help! There’s got to be a way to do this!