0
votes
1answer
43 views

Latest news mini images

I tried to find an answer on websites and other forums, but found nothing. I will try to explain my problem. I need to change my WordPress website so that it displays a small image for all news ...
0
votes
0answers
39 views

Do someone know how to fetch post images sizes via MYSQL Query?

i am developing a web-services using PHP with adodb classes. what i trying to do is that i need the image sizes of the post i.e(thumbnail, medium, large) size. I am able to fetch the post original ...
0
votes
0answers
19 views

Instead of showing the post it just shows the URL

When I tried to share this link http://www.j1studios.com/archives/6032 on Facebook, it would just repeat the URL and not show the title of the post, or the image. It's as if the link is broken.
0
votes
1answer
58 views

How to extract images of post and pages excluding header and logo image in wordpress?

I have tried this code to get all images from media library and i am sucessfully getting the source urls of all the images but now i want to exclude all the unwanted images like logo, header images ...
0
votes
1answer
43 views

Why can't I see my attachment page information for an image?

I'm following a course where the tutor uploads an image to his media library. He adds attachment information. He then creates a new post and includes the image. When he clicks through, he gets the ...
0
votes
0answers
16 views

Delete Image and Associated Posts

When I delete an image from the media library, I'd like to automatically delete the post that uses the image. Any ideas?
0
votes
1answer
159 views

Facebook post image not being shown when other people share it [closed]

I share a link on my facebook page, pick thumbnail and post it, but when other people share it there is only description, why is the thumbnail not appearing when they share it? Linter stuff seems ...
0
votes
1answer
192 views

removing inline styles from wp-caption div

Inline width and height attributes were never a huge problem with images in WordPress, since these were easily overwritten with CSS. The problem I'm having is that any images with captions are being ...
0
votes
2answers
44 views

Link post images to post

For some reason I can not find any good solution to making the post images link to the post. I found a script on http://wpguy.com/plugins/linked-image/ which works - but does not remove the old link, ...
0
votes
0answers
24 views

Image screen not working [closed]

I'm getting white screen when I go edit in Wordpress admin edit page for any images. So when I insert an image to Tinymce under edit page/post then click on image icon (on top left of the inserted ...
0
votes
2answers
376 views

creating front end image uploader that uploads images as posts

there is this website lolhappens similar to 9gag. This is a website built over wordpress. How i am sure of this? check this link . Now to my best of knowledge this is a wordpress website where the ...
0
votes
2answers
219 views

WP 3.5 - How to remove permalink from images

In previous versions of WP, we were able to remove permalink from images while we were inserting images into post. But, now there is no obvious option to do so. How can it be achieved? Thanks.
1
vote
2answers
975 views

Errors when uploading images in WP 3.5

I'm trying to upload images in WP 3.5 to set featured images for posts. Unfortunately I get the following error message: An error occurred in the upload. Please try again later. The installed ...
1
vote
0answers
41 views

Show only posts with images and a fixed amount of posts

I found this code online. Its a code that only shows posts with images inside. Now, the problem is that if you set Wordpress to show 50 posts, this code shows the posts with the images, but also ...
0
votes
2answers
123 views

How to change the order of elements within a post?

I have a site with several thousand posts. They all have just a single attached image of varying size. All posts are displayed in full (no thumbnail view). I'd like to be able to change the way the ...
0
votes
1answer
217 views

Only show featured image on exerpt and exclude images in post

I have below code which displays the featured image from the post. But when I add an image to the post it also shows up with the featured image. What I need to do is just show the featured image and ...
0
votes
1answer
49 views

How would I attach media/images to a post based on a ID stored in a each post's custom field

I have converted a site over to wordpress recently. I was able to import all the posts via a CSV importer, but not the images associated with each post. The post type is "machinery". The custom ...
0
votes
1answer
74 views

How can i add thumbnails images to particular post (using code not admin pannel) in wordpress

I am trying to set thumbnails for my post. I have post_id = 285 and I want to add manually a thumbnail (using code) but I'm not succeeding. update_post_meta( $post->ID, '_thumbnail_id', ...
1
vote
2answers
1k views

Show featured image next to post-teasers in Genesis Framework?

I want my posts to have a featured-image thumbnail beside it, how do I do this?
0
votes
1answer
523 views

How do I insert a custom field in a user submitted post?

Please help! I have a form for users to submit posts, and I want them to be able to choose photos already in the media gallery based on category selected. I want to include radio buttons to choose ...
0
votes
2answers
124 views

Wordpress as CMS: How to manage/handle images assigned to a post as full-sized background images in a slideshow?

I wonder if Wordpress is the best CMS or solution for what I wannt to do? I need to find some way to upload images to a post that I can loop as background images. Just like I can upload multiple ...
0
votes
2answers
512 views

Replace image attributes for lazyload plugin (data-src)

I want to apply jquery lazyload plugin. For this to work I have to create a new attribute which is data-src place there the src value and then replace the src value with a specific value ...
-2
votes
1answer
221 views

Front end post or photo or both

I need a help in correcting my code that can front end post or attach image or post&attach image ;) Now I can send a 'post' and 'post with photo' but can't send just a photo, How can I do that? ...
1
vote
0answers
65 views

How to make the Awake or Unite theme to use the featured image as post image? [closed]

How can I make the Awake or Unite WP theme to use the post image from featured image instead of manually entering the post image URL in each post ?
1
vote
2answers
235 views

wordpress post pagination with image buttons?

I'm trying to make a post pagination like this: button left image | 1 2 3 4 5 |button right image but I can't get it work. I've tried: <?php ...
1
vote
2answers
2k views

Get image from post's gallery

Is there any possibility on Wordpress to get an image from a post gallery? Images are not inserted in the post, are on it's gallery. I'm trying to do a "galleries index" page and instead having the ...
0
votes
1answer
206 views

If statement to check if post has image

I have the following code. When There is only one image in the backend, the second image shows up with a little question mark instead of nothing. I am looking for a way to check if the image exists ...
0
votes
1answer
202 views

Unattaching images from a post

I currently have a custom post type in a theme I'm developing which will be used for portfolio items. So far, I have implemented functionality that allows images to be attached to a portfolio post. I ...
0
votes
1answer
49 views

Only show posts with image and the correct ammount of posts in loop

This script makes a loop showing only posts with images, but I have a problem. It doesnt show the right ammount of posts pr page. Probably because it counts the total nr of posts, including the ones ...
0
votes
2answers
170 views

How to only publish posts with image in it

I use a standard loop in my index.php and that shows all the posts beeing posted. What i'm looking for is a code that only shows the posts that have image(s) in it. With other words: i only want to ...
1
vote
1answer
165 views

How would one change the default url structure of attachments?

When I click on post images it redirects in a page with a url like this: http://localhost/?attachment_id=897. Can I set the default image link like http://localhost/wp-content/uploads/2012/05/dice.jpg ...
0
votes
1answer
35 views

Problems displaying images [closed]

I m new to wordpress. Currently working on a food blog and have created a custom post type for the recipes. But, i m not able to display the featured image of the posts on the blog home page. Any ...
1
vote
2answers
898 views

Find the post an attachment is attached to

I have a list of attachment IDs which are built using this array: $all_images = get_posts( array( 'post_type' => 'attachment', 'numberposts' => -1, ) ); Is it possible to take the image ID ...
0
votes
2answers
629 views

How to call Wordpress First Image Post or else Attached Image or Default

Can anyone help me develop a wordpress script that [IF] will get first image post and if it doesn't exist it will [ELSE] get first attached (uploaded) image. Theoretically: [IF exists] <img ...
2
votes
1answer
74 views

All my inserted images gets a link to the full image even if it is already full size image

So when I create a new post and I upload an image onto the my server. Normally depending on the size of the image you can select small, medium, large image to place inside the post. On other sites ...
0
votes
1answer
31 views

Regarding Posts

I have several questions How to limit characters in the post? How to ensure every posting require images upload? That's all, appreciate if anyone can help..
0
votes
3answers
177 views

how can display a post on home screen without images

When i post something with an image, its also displayed over homepage.. And my post has image some images inside the content of the post.. and I am not using any featured image.. How can we display ...
5
votes
1answer
979 views

Add existing images from Media Library in to custom gallery

I have [gallery] inside the post, and I'm interested in a way to add already existing images from media library in to this gallery? once I trying add any image I have only one option - insert into ...
0
votes
2answers
953 views

Uploading images in custom post form

I have custom form for posting in my theme file. I also need to upload photos(videos also but photos are more important now) and I prepared form using wp handle upload function. It's working, images ...
0
votes
2answers
850 views

thumbnail image in Facebook share shows only for the first post [closed]

I realised that I have a strange problem when I try to share a post in facebook. From all my posts, only for the first post I created the thumbnail image shows for when I try to share the link in ...
1
vote
1answer
267 views

Add an image box besides featured image?

When you want to associate an image to a post which already has its own featured image, you have to use a custom field : you upload an image just as if you wanted to add an image inside your post, but ...
1
vote
1answer
1k views

Image Insert into posts and pages not working after 3.2.1 update

And I've tried disabling all plugins and using the Twenty Eleven theme. In our sites network, I'm the network admin, so it's not a permissions issue. Any explanation or ways I might be able to ...
0
votes
1answer
31 views

Thumbnail Image to go in the post aswell

I have looked everywhere but I cant see any clear answers, a lot about getting a thumbnail image. But I am after having the thumbnail which was uploaded to the post to also be in the post just made. ...
3
votes
2answers
492 views

How to get Images included in Post

is possible to get images added to a post programmatically? I am working on custom template (my first) and I need to display Images added to a post in specific way.(first image as title image and the ...
1
vote
4answers
1k views

How to wrap every image in a post with a div?

When I add an image to a post I want it to be in a div e.g. , and I want that to be done automatically, so I don't have to do that in HTML editor. I don't want to use js to accomplish this and by the ...
0
votes
1answer
268 views

Upload attachment from external site

For example, we have some image on the external site: http://site.com/image.png How do I upload this image to my wordpress as an image attachment by php? Image should be copied to my uploads ...
0
votes
3answers
448 views

How to retrieve the postID in a “image_send_to_editor” hook function?

Here is my function: function insert_img_rel_attrib( $html, $id, $caption, $title, $align, $url ) { $postID = ??? $rel = "<a rel='shadowbox[".$postID."]'"; if ($url) {$html = ...
1
vote
2answers
8k views

How to get only text from wordpress post content?

I have been using wordpress for my projects. For my homepage of the site I need to display limited text from the post content and the content contains images as well. To display the 100 text i have ...
5
votes
1answer
909 views

Delete the original big size image after upload and leave only 3 images crunched by media gallery

I need to know is it possible to somehow erase the original image uploaded via Gravity form : post image - post field?! With the situation now I receive 4 images. 1 original (can be whatever user has ...
0
votes
2answers
829 views

how to grab first link in post… and of course call it

I have been trying to get the answer to this for ages now and wondered if anyone here could help. I would like to 'grab' the first link in a post and attach it to a button/image. I have tried the ...

1 2