Append Query String To End Of href's and image src attributes in wordpress

已完成 已发布的 7 年前 货到付款
已完成 货到付款

PLEASE NOTE :

*************************

BIDS THAT DO NOT MAKE AT LEAST SOME RELATIVE COMMENT ACKNOWLEDGING THAT THEY HAVE READ THESE REQUIREMENTS WILL BE IGNORED

OBJECTIVE

*************

I want to include a query string at the end of each image or attachment url displayed in wordpress

For example :

An image

---------------

<img src="[url removed, login to view]"

An attachment

---------------

href="[url removed, login to view]"

Notice the ?query string at end >> "version=2017-03-15-01-01-01"

The number represents YYYY-MM-DD HH:MM:SS date format and this represents the date the attachment post was last modified e.g. post_modified field

This is not technically a date format but it's the way I want it to appear and I don't want spaces or the : character to appear so these should be replaced with hyphens as shown in the example

So the outcome will be this :

*****************************

I want all images and attachments shown in the media library and the post editor to have a query string appended to the end of it's href or src attribute (depending on whether it's an image or an attachment)

Make use of wordpress filters

*************************************

I want you to make use of any wordpress filters to make this as simple as possible

How you will deliver it to me

******************************

All I need are a set of functions, so that I can copy and paste this into my [url removed, login to view] file

Hope this makes sense, look forward to your bids

PHP WordPress

项目ID: #13397086

关于项目

11个方案 远程项目 活跃的7 年前

授予:

shelingholmes

Hi . . I found there are 2 filters to filter url from media or any attachment in wordpress. I found these two from wordpress codex and [login to view URL] which reliable as sources If all images, and other med 更多

$60 AUD 在1天内
(61条评论)
5.6

有11名威客正在参与此工作的竞标,均价$146/小时

rinsadsl

Hello Good Day I can add this custom query string to your images and documents. I have plenty of experience on wordpress. I can build it as a function which you can add as a filter. Looking forward to hear from you. 更多

$210 AUD 在3天内
(786条评论)
8.3
Shopify

Hello, Greetings from Shopify We have recently completed the similar project and would like to show you a live demo which is similar to your project . I would like to discuss your project in more details so during 更多

$206 AUD 在3天内
(18条评论)
6.8
parimaldesai77

I am a Web development expert with over 5 years experience. Till date, I have created over 30 websites, My aim has always been to produce websites that look beautiful and professional, are highly functional, load quic 更多

$100 AUD 在3天内
(20条评论)
4.7