The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
35 views

SQL query to remove first image in all posts

I've built a site up over a few years (3,500+ posts) where I've inserted images using the traditional method into the post content itself. I'm now moving to a different theme, and have made the first ...
0
votes
1answer
60 views

PHP code to call image Caption, Alternative Text, and Decription?

Is there a Wordpress PHP code to call an image Caption, Alternative Text, and Decription? I have several images with Titles, captions, alt text and Description fields filled and would like to display ...
0
votes
1answer
37 views

How to get the_post_thumbnail caption?

I want to show the caption of the post thumbnail, there's a couple of methods out there, but none of them displays the caption properly, the caption just float and not displayed under the image! I ...
1
vote
1answer
43 views

Can't insert caption into image

You can see live example here. When I add a caption into the image, it doesn't show at all! I've added the caption to the image as you can see in the next picture but it doesn't show as you see ...
0
votes
1answer
30 views

Remove inline width from figure

I add an image with caption to my page and need to increase <figure> width. But wordpress is adding an inline width. [caption id="attachment_44" align="alignnone" width="216"]<a href="image ...
0
votes
0answers
53 views

Add image caption to frescojs

I want to add the image caption to the frescojs popup. The following code is in the functions.php: add_filter( 'wp_get_attachment_link', 'sant_prettyadd', 10, 6); function sant_prettyadd ...
3
votes
1answer
30 views

Alter media caption/description conflict in Wordpress?

When uploading an image, Wordpress reads the description meta data from the jpg via wp_read_image_metadata and inserts it into the post_content field when adding the attachment via media_handle_upload ...
0
votes
0answers
40 views

Removing height and width from images with a caption

I am using WordPress with Twitter Bootstrap 3 and have an issue when it comes to images with captions. Images with captions are given a height and width attribute which stops them from being ...
0
votes
1answer
46 views

How to change images size after theme modification?

The images in the previous theme were using a height and width listed in the source html. The new theme will resize the images using percentages, so I need to remove all the height and width in the ...
0
votes
1answer
91 views

Dynamically adding Captions to images

I have a site where the author has included Amazon Affiliate links. They've done this by adding the URL to product images. I'm wondering if there's a way to add a function that will automatically add ...
1
vote
1answer
321 views

Get Image Description

I'm trying to make a post split in 2 columns. The first and left one is going to be any image inside the post, and the second and right one will be the_content() (excluding the images). So as of now ...
0
votes
0answers
37 views

How to make the caption field mandatory and copy the caption field's data into alt tag?

BACKGROUND We are developing an Image Gallery for a Newspaper site (the theme was also developed by us). We are creating a custom situation for that: Querying (WP_Query()) for all the posts ...
0
votes
1answer
260 views

How to add a credit line to a photo caption

I'm trying to find a way to automatically add a photographer credit line to user-inserted photos. I've added custom fields to the media uploader for 'Photographer Name' and 'Photographer URL' but I ...
0
votes
1answer
153 views

Custom caption output for custom image size

I've done a lot of searching and have found out how to customize the img_caption_shortcode oputput. What I can't seem to figure out how to do: Add a specific class to the caption's output if a ...
1
vote
2answers
138 views

Nested Shortcode Inside [caption] Doesn't Process

Captions in wordpress do not support nested shortcodes at the moment (v3.6). So, If I do write [caption]<img src=""> I love my [city][/caption] Where city is suppose to be processed but it ...
0
votes
1answer
158 views

How to dynamically insert <a href> in the image caption?

So, below is the Wordpress default generated code for a gallery item: <div id='gallery-1' class='gallery galleryid-203 gallery-columns-3 gallery-size-thumbnail'> <dl ...
0
votes
1answer
43 views

Move caption in on attachment page

I am looking for a way to edit the way Wordpress’ native gallery displays images when clicked on. Specifically, I need to move the title below the image. A more detailed explanation: I setup a ...
0
votes
0answers
288 views

Display Image Captions on Featured Images in Flexslider

I have been racking my brain at figuring this out and am willing to pay a bounty on it. Note: I am customizing a theme from an author who has very poor customer service and support. Problem: the ...
0
votes
1answer
338 views

Random home page background images with caption text

all. I am developing a Wordpress theme and I need to have a random background image display on the home page with specific text for each image. I have installed the Background Manager plugin ...
2
votes
2answers
779 views

make Wordpress image captions responsive

This webpage contains images inserted by Wordpress. The code used to insert the first image is: [caption id="attachment_887" align="alignnone" width="604"] <a ...
4
votes
1answer
54 views

Multi user site and image captions

On multi user sites when authors select images from the media library they can choose images that other authors have uploaded. The problem is that they can edit the caption and it changes it for both ...
1
vote
0answers
75 views

Way to add captions to gallery images by code

I am creating posts by using wp_insert_post function. It works fine as I provide values in array required. Sometimes it is required to create a post having gallery. Without any problem, it also works ...
1
vote
1answer
479 views

Getting Featured Image Caption to Only Show if Populated

Good evening! I'm trying to hide the featured image caption from showing. Currently, it'll show build the div (but not populate it because it's empty). What I'd like to do, ideally, is only show the ...
1
vote
1answer
172 views

How do themes render caption texts in extended markup (e.g. “wp-caption” paragraphs)

I've created my own theme based on a very lean template. My theme is not parsing the [caption]...[/caption] markup to the correct html. It's just showing the text without any markup around it. Here ...
2
votes
1answer
735 views

Add extra class to wp-caption?

How do you add a new class to the HTML generated when an image with captions is added? For example, from this: <div id="attachment_xyz" class="wp-caption alignleft"... to this: <div ...
1
vote
3answers
494 views

Caption shortcodes not including caption as attribute

I recently installed the bonpress theme and am having trouble with the captions showing correctly. The more I try to understand how captions are supposed to work in Wordpress, the more I suspect ...
0
votes
1answer
768 views

How to limit post content and remove image caption from it

I am using this function to limit the content in my themes. But the problem is whenever I call the function, it also displays the image caption. I want to remove the image caption when calling ...
0
votes
3answers
235 views

How to edit caption for images and exclude it from excerption query?

I have 2 questions for caption for images: - how to edti them with bold, italics and so on? I do it, but it doesn't work. - if the image is first, how to exclude caption from excerpt in query ...
0
votes
1answer
109 views

Wrap a post image with a div if it doesn't have a caption

I've tried the below code to wrap a post image with a div and it works. The problem I'm having is if the image has a caption. It screws up the the code that is generated when a caption is set for the ...
0
votes
2answers
416 views

Seeking recommendations on Gallery plugins , specifically captioning thumbnails

I am looking for a gallery plugin that will display thumbnails on a page with captions beneath them, and still allow them to click through to fullsize images, preferably with a slideshow mode allowed. ...
1
vote
1answer
182 views

Is there a way to define a default caption to all uploaded images

As the title of this answer say, I want to define a default caption to all uploaded images in my WordPress... Is there a way to do something like this?
0
votes
2answers
487 views

Remove wp-caption but still show the image

I have been using wp-caption for so long but for a template I am working on I want to delete this tag and only show the image, I used display:none; function but it does not show the image , any help ...
0
votes
1answer
206 views

Display a post attachment depending on the caption

I would like to display automatically a post attachment (PDF) depending on the language of my blog (french and english). When the post is displaying in french version, I would like display the french ...
2
votes
1answer
145 views

Include captions

I'm using the Meta Box plugin, everything works fine. I'm using it to create gallery function on some custom post type, and I'm able to display the uploaded images using this code: global $wpdb; ...
0
votes
2answers
843 views

How to add line breaks inside Gallery Captions

I am using this excellent piece of code to insert a line break in single image captions by way of inserting a pipe character... Now I would like your help to try to incorporate this into the gallery ...
1
vote
0answers
395 views

Image caption with apostrophe breaks the text with qTranslate [closed]

I created my own theme and I use on two different websites, along with a very few plugins (among them, qTranslate!). I noticed that recently (I don't think it was happening before) that all my image ...
1
vote
3answers
2k views

HTML tags in Wordpress image caption

I'm developing a client website with Wordpress (3.3) but have found that the image caption feature strips out any HTML tags. The resulting caption is plain text which makes proper image crediting ...
-1
votes
2answers
86 views

Check if a field is capitalized?

I want to check the if the first letter of a field is capitalized. Example: If (First Name field) is capitalized { Capitalized! } else { Not Capitalized! } Thanks Thank you
1
vote
2answers
1k views

Include caption underneath post images

Hello I've been struggling for ages trying to find a solution for this. Basically I just want to retrieve all images from a post and display a caption underneath. Here is the code i'm using: ...
0
votes
2answers
5k views

Displaying an image's alt title and caption inside a fancybox window. Working, but showing the same alt and caption for each image

I've been at this for hours so maybe someone here can help :) Basically I have a fancybox gallery that loads images attached to a post. As you can see below, I want to echo either the image's caption ...
0
votes
1answer
232 views

add image caption

I would like to add caption to a image I just uploaded through a from. So I have the attachment id and the caption text in a variable. I found wp_update_attachment_metadata in wordpress codex .. but ...
2
votes
1answer
155 views

Multi-line captions on attachments

How can I change the 'Caption' text input to text area, to allow for multi line captions on media uploads?
1
vote
1answer
138 views

Captions for More Fields groups, not just individual fields

I'm using More Fields to create some meta boxes on my custom post type. Is it possible to have a caption for each "group" of fields in the More Fields options? I would like to provide some basic ...
0
votes
1answer
1k views

Displaying caption with featured image

I'd like to display captions with my featured images. This is another feature that should be available by default but for some reason is not. There are a few routines out there that claim to ...
0
votes
1answer
2k views

Turn off image captions in gallery view?

I've set up my loop-attachment.php to show the gallery of thumbnails above the main, selected image using this code from the WordPress Codex: <?php $gallery_shortcode = '[gallery id="' . ...
2
votes
2answers
486 views

Caption in Page adding unwanted 10px to width

I'm trying to create an image with a caption in a Page I'm working with. In the image options, I have it aligned right, with an image width of 220. Without the caption I have no problems, however with ...
0
votes
3answers
408 views

Style wordpress image captions in RSS

My WordPress site includes the full article in its RSS feed. This includes the text of the post and basic formatting. It also includes post images and their captions. The problem is that my captions ...
2
votes
3answers
2k views

Remove image caption from post excerpt

I am currently using a wordpress plugin called "limit-posts" to better customize my post excerpts. The only issue I have is the excerpt is including the caption text from the image that is within the ...
3
votes
3answers
861 views

How to add a link in a image's caption?

I would like to add a link to the caption of a photo in one of my posts. I can type in the HTML for the link in the caption, but when I publish the post the link gets removed. How do you add a link ...
5
votes
2answers
746 views

Are captions stored anywhere?

In regards to my previous question about shortcode captions, it doesn't appear to me that the actual text of a caption is stored anywhere other than in the post content within the shortcode itself. I ...