New answers tagged

0 votes

Adding caption to all images inside an article

I'm not 100% sure if I understand your question 100%, but WordPress, by default, displays the caption if it's filled on the image. Then it displays it just below the image once the image is inserted. ...
Phillip Stemann's user avatar
1 vote
Accepted

How to add embed image in comments?

You can do that by using the comment_text filter. It runs for each comment, so with some regex you can find all links in the comment and loop through them. You make one more check to make sure the ...
alex's user avatar
  • 91
0 votes

how can I change all wordpress media file url to custom cdn url?

You can place this in your functions.php file: add_filter('wp_get_attachment_url', 'replace_media_url'); function replace_media_url($url) { $custom_url = 'https://mybucket.nyc3.cdn....
Jason Ellis's user avatar
1 vote
Accepted

How do i display the number of images on the "post screen"

The code below suggests one approach to handling the display of a post image count on the Post Edit List screen (edit.php). The function names provide an outline of what the code is doing. References ...
kofeigen's user avatar
  • 201

Top 50 recent answers are included