how to set image url in wordpress text editor - wordpress

I insert image in a post via text editor. The full path is the image is
http://74.52.17.77/~printing/wp-content/uploads/2013/04/march19coupon1-300x172.png
But after moving the wordpress to the main website this url should be this
http://74.52.17.77/wp-content/uploads/2013/04/march19coupon1-300x172.png
Then I have to change this in all the posts. :(
Is there any way to set this url so i do not need to change this every time.

I think you can reach that goal trough a SQL sentence, which will update all those old urls...

Related

Adding a link from an image in wordpress

This seems to be more difficult than it should be.
All I would like to be able to do is add a link from an image on my wordpress site to an external website.
Using the normal media library tools this doesn't seem to be possible so I got the plugin WP Gallery Custom Links
However, even though I added the external link to the Gallery Link URL it still doesn't link.
Is there a more straightforward way to embed a link into an image?
Here is a screenshot of the image editing page:
If you are trying to make an Image clickable and bring you to an external site, click the image, click Edit, under Display settings select link to, custom url, and there you go.
Another way is, when you are adding an image to your site from your Media Library within Wordpress, there is an option "Link to" under Attachment Display Settings.

How to disable automatic image URL to image HTML conversion in wordpress?

In wordpress at user content, if i paste image urls in editor, urls are immediately converted to the image!
What is to be done to disable this feature URL to image HTML conversion in the wordpress?
If I understand correctly, you want to output your image URL without converting it directly to an image? Try using the "Text" editor inside of Wordpress post (instead of "Visual" editor) and enter you image URL there. When you switch back to "Visual" editor you will see your image URL and not an image.
If I understand correctly, you want to output your image URL without
converting it directly to an image? Try using the "Text" editor inside
of Wordpress post (instead of "Visual" editor) and enter you image URL
there. When you switch back to "Visual" editor you will see your image
URL and not an image.
no! for example in demo qaengine theme https://qaengine.enginethemes.com/blog/question/test
if paste url image: https://cdn.enginethemes.com/qaengine/2015/01/128.jpg
to editor, url Immediately convert to the image!
i want disable and url paste Only displayed as text...

upload image from wordpress default text editor

Now I am trying to insert an image into my post as a customer, While the default text editor can not upload images.It only uses image url to insert an image to a post.
After a long time searching wp plugins I failed ):
How can I insert an image file into a post?
thanks
The default editor can upload images. Does it work as an admin? If so you need to up your user-roll to give it more rights. It should be author or higher.
More information look for upload_files
http://codex.wordpress.org/Roles_and_Capabilities#Capability_vs._Role_Table

Change wordpress post content url from mysql?

Where do I go in the Mysql database to change the path of the media that are already inside the post instead of having to each post one by one and change the links url.
This is a great plugin, I use it all the time
http://wordpress.org/extend/plugins/search-and-replace/
you just tell it what you want to change and it will go through your whole db find/replace. totally recommended.

Drupal relative link problems moving from mydomain.com/test to mydomain.com

I currentley have a test site up and running on mydomain.cm/test. I am using the WYSIWYG module with tinymce to allow my customers to upload pictures to the site. One a image is added to the site tinymce/imce does not use the base url defined for the site in front opf links but gives linkes realtive to the root i.e. a picture of img.jpg will be linked in the code as /test/img.jpg. When the site goes live and we lose the /test the img will no longer be found there.
What would be the best way to bulk upload all the links before going live to remove /test in front of the links?
In the future when settting up a test site I will user a subdmain instead so I will not have this issue.
Any help would be apreciated.
The easiest way is to run a MySQL query directly on your database. Just search and replace in your node_revisions table in both the body and teasers column.
update node_revisions set body = replace(body,'/test/','/');
update node_revisions set teaser = replace(teaser,'/test/','/');
Of course, backup before you do this.
One solution is to leave all your content untouched and rewrite all the /test/*.[jpg,gif,png] urls through a rewrite rule in .htaccess.

Resources