sshilo
Forum Replies Created
-
Thanks!
Forum: Plugins
In reply to: [Wordbooker] Can I post an image to FB if it's featured but not in the postgreat! I will try to post again without checking the box I did.
Amazing plugin.
Forum: Plugins
In reply to: [Wordbooker] Can I post an image to FB if it's featured but not in the postThanks Steve,
if posts have images uploaded to them, and one selected as featured image, but it does not show up on the page when the post is viewed on the actual website. What will/should happen then.Forum: Plugins
In reply to: [The Events Calendar] Reference Calendar Page in Functionthat worked great!! TYVM you two!
Forum: Plugins
In reply to: [The Events Calendar] Reference Calendar Page in Functionroblagatta, will try it today and update asap. TY Jonah.
Forum: Plugins
In reply to: [The Events Calendar] Reference Calendar Page in FunctionI looked and could not find it. I tried changing it to
is_page_template('/wp-content/plugins/the-events-calendar/views/ecp-page-template.php')or
is_page_template('ecp-page-template.php')neither worked. Any help would be greatly appreciated.
basically, I need to know what value under ‘is_page_template()’ would return a value of yes for
Forum: Plugins
In reply to: [Theme Test Drive] [Plugin: Theme Test Drive] template selectionanyone have a solution to this?
Forum: Fixing WordPress
In reply to: List all photos in postunfortunately, I can’t show you the site, but it’s a theme I’m working with and it’s using the theme test plugin, so you can’t see it without being logged it.
thank you very much for the help
Forum: Fixing WordPress
In reply to: List all photos in postgot it to work with this (I know it’s not elegant):
$images =& get_children( 'post_type=attachment&post_mime_type=image&post_parent=' . get_the_ID() );if ( empty($images) ) {
// no attachments here
} else {
foreach ( $images as $attachment_id => $attachment ) {
$image = wp_get_attachment_image_src( $attachment_id, $size, $icon );
echo $image[0];
}
}Forum: Fixing WordPress
In reply to: List all photos in postwhen I do that, it actually still “prints” the thumbnails to the screen.
I cleared the cache, did a forced refresh and no luck. I now have this:
$images =& get_children( 'post_type=attachment&post_mime_type=image&post_parent=' . get_the_ID() ); if ( empty($images) ) { // no attachments here } else { foreach ( $images as $attachment_id => $attachment ) { echo wp_get_attachment_link($attachment_id, 'thumbnail', false, false); } }Forum: Fixing WordPress
In reply to: List all photos in postyup, I just figured that out (didn’t have the id). Now, I’m trying to get it to give me just the url, rather than printing it to the screen. I have:
$images =& get_children( 'post_type=attachment&post_mime_type=image&post_parent=' . get_the_ID() ); if ( empty($images) ) { // no attachments here } else { foreach ( $images as $attachment_id => $attachment ) { echo wp_get_attachment_link($attachment_id, $size = 'thumbnail', $permalink = true, $icon = false); } }but it’s still adding the image tag to the page, rather than echoing the url
Forum: Fixing WordPress
In reply to: List all photos in postreuben,
(my post has 2 images)
When I use that code within the loop on my single.php, I get 4 images that have nothing to do with this post.
Any ideas?
pavvy,
I am not sure that plugin returns an array of the imageswhere do you limit which categories this will work with? for example, if I only want it to work on category 134 and it’s children.
thanks.
Forum: Plugins
In reply to: [Plugin: TDO Mini Forms] Style for upload widget?anyone have any idea how to do this?
Forum: Plugins
In reply to: [Plugin: Contact Form 7] 2.8ty