Up to 50 percent off

Problems with images

This topic contains 14 reply and 4 voices, and was last updated by Danilo 11 years ago
Viewing 14 Posts - 1 through 14 (of 14 total)
Author Posts
October 26, 2013 at 4:13 am 9448
Danilo Hi. 1) I've installed a plugin that resizes automatically uploaded images. It doesn't work with this plugin, attached images are uploaded with full size. 2) I can't show featured image into posts using code in your documentation. I can display other customized fields, but I can't display featured attached images. Any problems in documentation code?
October 26, 2013 at 5:24 pm 9458
Tareq Hasan Tareq Hasan

1) Can you describe how it’s not working? If the plugin is maintaining the WordPress standard, it should also generate those image sizes. You can check in the upload folder if its generating those images or not.

2) Use this code in your themes single.php to show featured images:
[php]
if ( has_post_thumbnail() ) {
the_post_thumbnail( ‘thumbnail’ );
}
[/php]

October 27, 2013 at 2:13 am 9467
Danilo Danilo

I’m using your code in documentation:

$images = get_post_meta( $post->ID, ‘mey_key_name’ );

if ( $images ) {
foreach ( $images as $attachment_id ) {
$thumb = wp_get_attachment_image( $attachment_id, ‘thumbnail’ );
$full_size = wp_get_attachment_url( $attachment_id );

printf( ‘%s‘, $full_size, $thumb );
}
}

No image are showing into my website.

October 27, 2013 at 3:00 am 9468
Tareq Hasan Tareq Hasan

Did you changed mey_key_name with your the meta key you are using?

October 27, 2013 at 3:04 am 9470
Danilo Danilo

Yes.
Coordinates are working correctly (in this event user didn’t send it), the problem is white box around placemark.
Map field is working fine.

October 27, 2013 at 3:06 am 9471
Danilo Danilo

Sorry, I wrote in wrong post.
Yes, I changed meta name…

October 27, 2013 at 3:08 am 9472
Danilo Danilo

Just only a problem:
I can’t allow image uploading, just only FEATURED IMAGE uploading.
In this case, I can’t retrieve meta name for this field.
Maybe this is the problem?

October 29, 2013 at 6:10 am 9549
Danilo Danilo

Which code I need to use if I want to display a gallery automatically?

I can’t find FEATURED IMAGE meta name…

October 29, 2013 at 9:43 am 9554
Mahi Mahi

Your dont need featured image meta_key name.

Follow here –

http://codex.wordpress.org/Post_Thumbnails

or, http://wordpress.org/support/topic/show-featured-image-and-only-featured-image

October 30, 2013 at 4:12 am 9594
Danilo Danilo

Yes.
Adding this code, is working for me.

October 30, 2013 at 4:25 am 9595
Danilo Danilo

And if GALLERY is present?
How can I show it?

October 31, 2013 at 1:09 am 9620
Tareq Hasan Tareq Hasan

What do you mean by GALLERY is present? How do you define if gallery is present?

October 31, 2013 at 1:50 am 9622
Danilo Danilo

For example, if I add a IMAGES field into my form, so users can submit images (not FEATURED IMAGES).
They show if I put [GALLERY] shortcode manually, but I need to display automaticaly customizing my theme.

November 2, 2013 at 5:08 am 9682
paperweight paperweight

I use a loop instead of [gallery] because I too was having issues getting [gallery] to work well with WPUF to output numerous images.

November 2, 2013 at 8:05 am 9684
Danilo Danilo

Could you post code sample, please?

Viewing 14 Posts - 1 through 14 (of 14 total)