Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Wie man in WordPress mit einem Plugin suchen und ersetzen kann

Hinweis der Redaktion: Wir erhalten eine Provision für Partnerlinks auf WPBeginner. Die Provisionen haben keinen Einfluss auf die Meinung oder Bewertung unserer Redakteure. Erfahre mehr über Redaktioneller Prozess.

Möchten Sie in WordPress suchen und ersetzen? Kürzlich fragte uns einer unserer Nutzer, wie man in der WordPress-Datenbank suchen und ersetzen kann, ohne SQL-Code zu schreiben oder phpMyAdmin zu verwenden. Viele Anfänger sind mit Code nicht vertraut, deshalb haben wir ein Suchen und Ersetzen Plugin für WordPress entwickelt. In diesem Artikel zeigen wir Ihnen, wie Sie Suchen und Ersetzen in WordPress durchführen können.

Search and replace text in WordPress database

Erste Schritte

Es ist äußerst wichtig, dass Sie ein vollständiges WordPress-Backup erstellen, bevor Sie irgendwelche Änderungen an Ihrer WordPress-Datenbank vornehmen.

Machen Sie diese bewährte Praxis zur Gewohnheit, denn es kann jederzeit etwas schief gehen, wenn Sie direkte Änderungen an der WordPress-Datenbank vornehmen. Wenn Sie ein Backup haben, können Sie Ihre WordPress-Website leicht wiederherstellen, ohne etwas zu verlieren.

Installieren und Verwenden von Better Search and Replace für WordPress

Als erstes müssen Sie das Better Search Replace-Plugin installieren und aktivieren. Nach der Aktivierung müssen Sie die Seite Tools “ Better Search Replace besuchen, um das Plugin zu verwenden.

Better search replace plugin settings

Fügen Sie einfach die Textzeichenfolge hinzu, nach der Sie suchen möchten, und fügen Sie dann den Ersetzungstext hinzu.

Danach müssen Sie die Tabellen auswählen, in denen Sie suchen möchten. Wenn Sie z. B. einen Text in Ihren Beiträgen suchen und ersetzen möchten, sollten Sie die Tabelle „Beiträge“ auswählen. Sie können auch mehrere Tabellen auswählen, wenn Sie möchten.

Erfahren Sie mehr über die WordPress-Datenbankverwaltung und die Funktionen der einzelnen Tabellen in WordPress.

Das Plugin kann eine Groß-/Kleinschreibung unterscheiden und ersetzen. Es kann auch einen Probelauf durchführen, mit dem Sie sehen können, wie viele Zellen von Ihrer Suche betroffen sind, ohne den Text tatsächlich zu ersetzen.

Wenn Sie zufrieden sind, klicken Sie auf die Schaltfläche Suchen/Ersetzen ausführen. Wenn Sie die Option „Trockenlauf“ nicht aktiviert haben, führt das Plugin jetzt das Suchen und Ersetzen in Ihrer WordPress-Datenbank aus.

Fehlersuche

Es kann vorkommen, dass Sie beim Suchen und Ersetzen einen weißen Bildschirm sehen oder Zeitüberschreitungen auftreten. Klicken Sie einfach auf die Registerkarte Einstellungen auf der Plugin-Seite.

Troubleshooting timeouts during search and replace

Sie werden die Option für die maximale Seitengröße sehen. Versuchen Sie, die Seitengröße zu verringern, um Zeitüberschreitungen und einen weißen Bildschirm zu vermeiden.

Wir hoffen, dass dieser Artikel Ihnen geholfen hat, ein besseres Plugin zum Suchen und Ersetzen für WordPress-Datenbanken zu finden. Vielleicht interessiert Sie auch unser Tutorial, wie Sie Ihre WordPress-Datenbank bereinigen können, um die Leistung zu verbessern.

Wenn Ihnen dieser Artikel gefallen hat, dann abonnieren Sie bitte unseren YouTube-Kanal für WordPress-Videotutorials. Sie können uns auch auf Twitter und Facebook finden.

Offenlegung: Unsere Inhalte werden von unseren Lesern unterstützt. Das bedeutet, dass wir möglicherweise eine Provision verdienen, wenn Sie auf einige unserer Links klicken. Mehr dazu erfahren Sie unter Wie WPBeginner finanziert wird , warum das wichtig ist und wie Sie uns unterstützen können. Hier finden Sie unseren redaktionellen Prozess .

Das ultimative WordPress Toolkit

Erhalte KOSTENLOSEN Zugang zu unserem Toolkit - eine Sammlung von WordPress-bezogenen Produkten und Ressourcen, die jeder Profi haben sollte!

Reader Interactions

24 KommentareEine Antwort hinterlassen

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

    • WPBeginner Support says

      The plugin does have the ability to search what was added through other plugins, you would mainly want to make ensure you search the correct tables.

      Admin

  2. Paul G says

    Thanks, this mostly worked for me but didn’t quite change all of the image links.

    The rest I could easily change myself by editing the custom modules.

  3. Karol says

    Changed a website from http to https via cpanel; green lock did not appear and „connection is not secure“ warning was present. This plugin worked great for me. The only difference I did was that I left the checkmark off „Case Insensitive?“.

    Every site can be different with it’s own hurdles to jump through but the dry run seemed to look okay without any errors so I ran with it. Green lock appeared right away for the site. Plugin worked for me. I hope it continues to work with other sites.

    My only question now is … Do I leave the Better Search Replace plugin installed and activated or do I uninstall it now that I’m done?

    • WPBeginner Support says

      That would be a personal preference question but you should be able to remove the plugin without worry :)

      Admin

  4. Mandy says

    Hello,

    My site is having issues showing images lately, and my host said that it’s because the paths are wrong. They recommended this plug in, but my problem is that I am not sure what I am searching and replacing. Here’s why:

    When I insert an image in „visual“ mode within a post, it shows up. They all do.
    Then when I preview or publish, some images don’t show up. What I am noticing lately is that instead of the code showing them as „image.jpg“, they now have the image size you choose in the path – „image-300×188.jpg“ (this happens to be the medium size for this particular image). Why is it putting the pixel dimensions? If none of the images worked, I could say yes, the paths are incorrect, but some images DO work! I am officially bamboozled. It seems so random.

    Best,

    Mandy

  5. Ashraf Ali says

    I am switching from http to https now the common problem faced is broken css, I am wondering if could use this plugin to replace https:// to just //

    So that all contents are delivered over https

    Cheers

  6. Drew says

    I had a program enter structured data that is all different. I want to remove everything between and including this : ———————-

    How would I do that?

  7. Sueli says

    Great plugin!

    I have a question.
    Can I use a wildcard?

    I am trying to remove numbers added after an image file. They are different (both the numbers and their length). The stop point would be the („).

    Some examples of what I want to replace with (jpg“)
    (jpg?11906004322295206140″)
    (jpg?15231215847335105667″)
    (jpg?82668654789154738″)

    Is it possible with this plugin?

    Thanks

  8. David says

    I download „Better Search & Replace. Once it found entries, it doesn’t show me unless I buy premium addon.

    So instead I ditched that and downloaded „Search & Replace“. It took me only two minutes to replace 100 entries.

  9. Ralpheal says

    Wow thanks so much, this is truly a luxury. Going to save me a lot of time, as I was considering changing a phone number on 1oo’s of blog posts.

    Thanks so much, :)

    Ralpheal

  10. Mike says

    This plugin did not work for me. I backed up the database, then unchecked „Dry Run“. It messed up things all over the site and there was no way to undo the changes.

    I even tried to restore the database backup I created with it before making changes and that didn’t work. Don’t use this unless you’re prepared to do an entire site restoration.

  11. vikas kumar says

    sir
    help me out from pagination error i did which you show in video but i didn’t get result
    i am using macbook air in this your given shortcode not work properly

  12. Marko Tiosavljevic says

    yes, but this plugin is practically useless when it comes to migrations.

    When you migrate website from domain . com to another . com you need to change

    you need to connect to database for changing url or you need to insert it in wp_config as url

    i am working on external app wp safe mode that is solving this problems in best way.

  13. Nico says

    Hi, it seems that this plugin is no longer available in WordPress Plugin Directory. Which alternative plugin do you recommend?

    With kind regars,
    Nico.

  14. Brian says

    Does this take into account serialize data or will it break plugins that use serialized metadata? I know of a few plugins that do this for migration purposes. If it doesn’t it could cause more problems than it solves.

Eine Antwort hinterlassen

Danke, dass du einen Kommentar hinterlassen möchtest. Bitte beachte, dass alle Kommentare nach unseren kommentarpolitik moderiert werden und deine E-Mail-Adresse NICHT veröffentlicht wird. Bitte verwende KEINE Schlüsselwörter im Namensfeld. Lass uns ein persönliches und sinnvolles Gespräch führen.