The replace tag has no wiki summary.
1
vote
1answer
110 views
wp_editor not modify html tags of initial content
How can i set the tinyMCE editor in wp_editor to not modify/replace the html tags of the initial content ?
I'm loading html content with tags (i know that they are deprecated but i need them) and ...
0
votes
1answer
126 views
Search/Replace for editor in HTML-mode
Is there a way to do a Search and Replace for the editor in HTML-mode?
Plugins I found are for the visual editor, we are working only in HTML-mode, therefore -not- appropriate for what we do.
I would ...
3
votes
1answer
367 views
Change html structure of all img tags in Wordpress
I have a Wordpress blog and am trying to implement the foresight.js image script. In short, I need to target all post images, swap out the src, width, & height attributes with data-src, ...
0
votes
1answer
43 views
Replacing & in JS code on pages
I am needing to remove the & that seems to be replacing my & on my page code.
My original code looked like this:
...
1
vote
2answers
55 views
open all .docs in word online
Hey I'm trying to make all .doc/docx .xls/xlsx files open in office online.
This would mean that every link to a .doc
http://mywebsite.com/wp-content/uploads.link.doc
would have to instead point ...
0
votes
3answers
188 views
replace html entities in posts between pre tags
I run a wordpress blog with a syntax highlighter plugin (Crayon). The plugin highlights code between pre tags, example:
<pre class="lang:languageid" title="example">
some code
</pre>
...
2
votes
1answer
47 views
Global, network-wide shortcodes or text replace functions
What I'm trying to achieve is a simple text-replace functions, that would be available to any site in my Wordpress Network. Basically I want to:
Change [--] into — (—),
Be able to ...
5
votes
6answers
16k views
What SQL Query to do a simple find and replace
Whenever I create a new website I first create a staging site on a subdomain like "stage.domain-name.com".
After everything works correctly I export the database, open it in notepad++ and do a ...
1
vote
1answer
167 views
bbpress change the word forum, topic, reply in the forum to another word I choose
bbpress
I would want to customize my Forum in bbpress.
by changing/replacing the words that appear on the forum layout.
I would like to change the words (everywhere they appear): Forum, topic, reply. ...
0
votes
2answers
92 views
About to migrate site to new domain
I've been developing a WordPress site for a client on my own hosting and domain and within the next week I'll be moving it to theirs. I have a number of questions regarding this as this is my first ...
0
votes
2answers
100 views
Replace the slug of parent pages with # [closed]
I'm creating a Wordpress site with a Superfish CSS3 / Jquery dropdown menu, complete with hoverIntent as displayed here:
http://users.tpg.com.au/j_birch/plugins/superfish/#examples
As far as I can ...
0
votes
2answers
185 views
echo post-permalink without http and www
I have this line …
<div class="permalink"><?php the_permalink(); ?></div>
and the result on my page looks like this …
http://mysite.com/whatever/post-or-so
I guess it could ...
0
votes
2answers
508 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 ...
4
votes
1answer
294 views
How to change “Draft” string for status of custom post type to “Unavailable”?
ANSWER MOD: just an important mod to the chosen answer:
// check if you actually have drafts; also avoids extra '|' separator
if (isset($views['draft'])) {
// 'Drafts' should be added (and come ...
0
votes
1answer
203 views
is wpdb->replace() already sanitized?
i am working on a plugin that includes table in database that holds information from the different posts. right now i use $wpdb->replace(), so whenever a post is being created or updated it is also ...
0
votes
1answer
162 views
Change Home Text
I'm pretty sure this can be done with a filter or some kind of find and replace...but I'm not sure how I would to do it...
I have a page called Home like so:
Screenshot
When the link is displayed ...
1
vote
1answer
202 views
printf and _n in this example?
what is the last $count in this example?
printf( _n(
'You have published %s post.', 'You have published %s posts.',
$count,
'myplugin' ),
$count );
i guess the first one is to fill each ...
5
votes
1answer
517 views
Moving WP install from local to live, what about wp_posts GUID?
Done this before and i am still wondering what to do with the wp_posts => guid content, which has reference to http://localhost
But at wordpress.org http://codex.wordpress.org/Changing_The_Site_URL ...
0
votes
1answer
105 views
Using str_replace on wp-admin
I'm currently having some difficulties getting this below snippet to work. The current outcome is it replaces nothing.
I realize this particular question could also be solved using gettext, but I was ...
0
votes
1answer
1k views
Getting rid of the #038; when string replacing content
I'm trying to add some string replacements to the_title() -
function format_title($content) {
$content = str_replace('&','&<br>', $content);
$content = ...
0
votes
1answer
43 views
How can I replace content on site generated from plugin without changing plugin
I downloaded a login form but I'd like to change its content without actually changing the plugin files so that it won't cause problems when updating later on. How can this be done?
0
votes
1answer
137 views
Extract Information from post content (using regex?)
I'm trying to replace some custom strings in my content before saving the post.
I have got the $data["post_content"] which includes strings like %replaceContent:{type}% . Now I need to extract that ...
0
votes
1answer
143 views
Rename Smart YouTube's httpv back to http for all posts
I've used the Smart YouTube plugin to embed YouTube videos into my blogs. The way I did it is to replace the http:// of the YouTube url with httpv:// as the plugin describes.
But now I noticed that ...
0
votes
1answer
267 views
Global MySQL replacing of text patterns/matches
I'm familiar with this method...
update TABLE_NAME set FIELD_NAME = replace(FIELD_NAME, ‘find this string’, ‘replace found string with this string’);
The problem is, I'm trying to do this to all ...
0
votes
2answers
1k views
MySQL: Possible to replace all of wp_posts.post_content(id#) via UPDATE + REPLACE + SELECT?
EDIT: I want to update one field (post_content) within a known record (id of 4) of a known table (wp_posts) in a new database (new_db). The update has to come from one field (post_content) within a ...