How find text within Post (or Page) content on whole site (4 posts)

  1. markts
    Posted 3 years ago #

    Wondering if there is an *easy* way for a non-techie to be able to search all of the text in the content of all Posts (or Pages) content to find where there are certain text strings.
    I don't necessarily want to replace them, I just want to find what Post/Pages they are on so I can fix them if needed. Like if the word "Holiday" appears, I want to be able to quickly find the couple of Posts/Pages where it does (I can search within the text on the Post/Page after that). I don't need to be able to search title, comments or metadata or anything else.
    Thank you.

  2. wpfan1000
    Posted 2 years ago #


    One way which I don't think is 100% fool proof is just to use the Search widget that comes with WP core. Just add to the side bar.

    You can enclose text strings in quotation marks.

    I say its not 100% foolproof because I find it does not find all text in all pages.

    There are also search plugins and search and replace plugins.

  3. qamberkazmi
    Posted 2 years ago #

    provide 's' in your WP-query like

    $args = array(
    'post_type' => array('post', 'page', 'careers', 'blog', 'news' ),
    'orderby' => 'title',
    'order' => 'ASC',
    'meta_tag' => 'brand',
    'compare' => 'LIKE',
    'paged' => $paged

  4. Clueless No Less
    Posted 2 years ago #

    Where can I find the text on my wordpress.org blog? I've been trying without success to transfer it from my .org account to my new wordpress.com account. I thought if I could at least find the text I could have that and re-create the rest of the pages and posts. Thanks for your help.


Topic Closed

This topic has been closed to new replies.

About this Topic