{"id":5822632,"date":"2023-10-07T19:15:21","date_gmt":"2023-10-07T19:15:21","guid":{"rendered":"https:\/\/www.wpallimport.com\/?post_type=documentation&#038;p=5822632"},"modified":"2025-12-08T18:31:06","modified_gmt":"2025-12-08T18:31:06","slug":"filtering-with-xpath","status":"publish","type":"documentation","link":"https:\/\/www.wpallimport.com\/documentation\/filtering-with-xpath\/","title":{"rendered":"Filtering Import Data with XPath"},"content":{"rendered":"\n<p>You can configure filters in the <strong>Manage Filtering Options<\/strong> section, available in Step 2 when creating an import, or in the <strong>Edit Template<\/strong> page when editing an existing import. Filters allow you to define which records to import.<\/p>\n\n\n\n<p>WP All Import filters data using XPath. The visual filter designer lets you visually construct an XPath expression. In this article, we'll describe how to use this designer.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"select-element\">Step 1: Select an Import Element to Filter Import Data<\/h2>\n\n\n\n<p>You can choose any of the import file elements in this step. For example, if you only want to import products with valid images, choose <strong>Image_URL<\/strong> as the <strong>Element<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Image-URL.jpg\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"1024\" height=\"405\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Image-URL-1024x405.jpg\" alt=\"Manage Filtering Options Image URL\" class=\"wp-image-5806965\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Image-URL-1024x405.jpg 1024w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Image-URL-300x119.jpg 300w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Image-URL-768x304.jpg 768w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Image-URL-1536x608.jpg 1536w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Image-URL-2048x810.jpg 2048w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Image-URL.jpg 2078w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"filter-rule\">Step 2: Add a Filter Rule<\/h2>\n\n\n\n<p>The <strong>Rule<\/strong> selection box lets you choose which rule to use for the filter. In this example, we have selected <strong>is not empty<\/strong>, meaning we want to import only products where the <strong>Image_URL<\/strong> element has data.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Is-Not-Empty.jpg\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"1024\" height=\"401\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Is-Not-Empty-1024x401.jpg\" alt=\"Manage Filtering Options Is Not Empty\" class=\"wp-image-5806966\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Is-Not-Empty-1024x401.jpg 1024w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Is-Not-Empty-300x117.jpg 300w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Is-Not-Empty-768x301.jpg 768w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Is-Not-Empty-1536x601.jpg 1536w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Is-Not-Empty-2048x802.jpg 2048w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Is-Not-Empty.jpg 2074w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>For most filters, you must also specify a <strong>Value<\/strong>. However, when using either the <strong>is empty<\/strong> or <strong>is not empty<\/strong>, a <strong>Value<\/strong> is not required.<\/p>\n\n\n\n<p>Click the <strong>Add Rule<\/strong> button to continue. <\/p>\n\n\n\n<p>The new filter will appear in the lower section and can be reviewed. If all looks well, click <strong>Apply Filters to XPath<\/strong> to apply the new filter. The XPath field will then be updated.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Apply-To-XPath.jpg\" data-rel=\"lightbox-image-2\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"1024\" height=\"492\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Apply-To-XPath-1024x492.jpg\" alt=\"Manage Filtering Options Apply To XPath\" class=\"wp-image-5806968\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Apply-To-XPath-1024x492.jpg 1024w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Apply-To-XPath-300x144.jpg 300w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Apply-To-XPath-768x369.jpg 768w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Apply-To-XPath-1536x738.jpg 1536w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Apply-To-XPath-2048x984.jpg 2048w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Apply-To-XPath.jpg 2072w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"enter-value\">Step 3: Enter a Filter Value<\/h2>\n\n\n\n<p>When required, input the <strong>Value<\/strong> that you want to filter by. For example, you can filter out any images with names that include the \".jpg\" extension:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Value.jpg\" data-rel=\"lightbox-image-3\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"1024\" height=\"399\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Value-1024x399.jpg\" alt=\"Manage Filtering Options Value\" class=\"wp-image-5806967\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Value-1024x399.jpg 1024w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Value-300x117.jpg 300w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Value-768x299.jpg 768w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Value-1536x599.jpg 1536w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Value-2048x799.jpg 2048w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Value.jpg 2062w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Otherwise, the <strong>Add Rule<\/strong> process is the same.<\/p>\n\n\n\n<p>You can also manually write an XPath expression to filter your file. Learn more at&nbsp;<a href=\"https:\/\/www.w3schools.com\/xml\/xpath_syntax.asp\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.w3schools.com\/xml\/xpath_syntax.asp<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"multiple\">Adding Multiple Filter Rules<\/h2>\n\n\n\n<p>You can add multiple filter rules and connect them using the logical operators AND (&amp;&amp;) and OR (||). The AND (&amp;&amp;) operator matches records that satisfy both conditions, while the OR (||) operator is used to match records that satisfy either condition.<\/p>\n\n\n\n<p>Here's an example showing how to filter products when image URLs are not empty and the sale price is higher than 50:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Second-Example.jpg\" data-rel=\"lightbox-image-4\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"1024\" height=\"532\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Second-Example-1024x532.jpg\" alt=\"Manage Filtering Options Second Example\" class=\"wp-image-5806964\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Second-Example-1024x532.jpg 1024w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Second-Example-300x156.jpg 300w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Second-Example-768x399.jpg 768w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Second-Example-1536x798.jpg 1536w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Second-Example-2048x1065.jpg 2048w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Second-Example.jpg 2070w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>You can add as many filter rules as you need, giving you full control over your import data.<\/p>\n\n\n\n<div class=\"docs-interstitial\">\n\n    <img decoding=\"async\" src=\"https:\/\/www.wpallimport.com\/wp-content\/plugins\/custom-acf-blocks\/blocks\/docs-interstitial\/img\/octopus-logo.svg\" class=\"docs-interstitial__logo\">    <h3>Import Any CSV, XML, or Excel to WordPress<\/h3>\n    <ul><li>Advanced filtering<\/li><li>Images &amp; galleries<\/li><li>Custom fields<\/li><li>Categories &amp; tags<\/li><li>Woo, ACF, Meta Box, JetEngine<\/li><\/ul>\n    <div class=\"docs-interstitial__cta\">\n        <a class=\"docs-interstitial__btn\" href=\"#pricing\" target=\"_self\">View Pricing<\/a>\n                    <a class=\"docs-interstitial__text-link\" href=\"https:\/\/www.wpallimport.com\/import-wordpress-csv-xml-excel\/\" target=\"_self\">\n                Product Tour\n                <div class=\"docs-interstitial__text-link-arrow\">\n                    <svg width=\"13\" height=\"11\" viewBox=\"0 0 13 11\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M8 1.5L12 5.5L8 9.5\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><\/path>\n                    <path d=\"M11.5 5.5H1\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"><\/path>\n                    <\/svg>\n                <\/div>\n            <\/a>\n            <\/div>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Filter Import Data \u2014 Advanced Topics<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"nested\">Add Indentation to Create Nested Filters<\/h3>\n\n\n\n<p>When working with multiple filter rules, you can nest or group rules simply by indenting them:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Indentation-AND-OR.jpg\" data-rel=\"lightbox-image-5\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"1024\" height=\"675\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Indentation-AND-OR-1024x675.jpg\" alt=\"Manage Filtering Options Indentation, AND OR\" class=\"wp-image-5806970\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Indentation-AND-OR-1024x675.jpg 1024w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Indentation-AND-OR-300x198.jpg 300w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Indentation-AND-OR-768x506.jpg 768w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Indentation-AND-OR-1536x1012.jpg 1536w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Indentation-AND-OR-2048x1349.jpg 2048w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Manage-Filtering-Options-Indentation-AND-OR.jpg 2058w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>This is equivalent to using parentheses and allows you to create logic such as (A AND B) OR (C AND D). In fact, by combining AND, OR, and nesting, you can create any filter logic you desire.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"modify-existing\">Modify Existing Import Filters<\/h3>\n\n\n\n<p>You can modify filters for an existing import by using this procedure:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Navigate to <strong>All Import \u203a Manage Imports<\/strong>.<\/li>\n\n\n\n<li>Locate the import in question.<\/li>\n\n\n\n<li>Click <strong>Edit Template<\/strong>.<\/li>\n\n\n\n<li>Modify your filter in the <strong>Manage Filtering Options<\/strong> section.<\/li>\n\n\n\n<li>Save the import template.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Filter Import Data \u2014 Related Docs<\/h2>\n\n\n\n\n\n<p>Quickstart guide that explains how to use WP All Import.<\/p>\n\n\n\n\n\n<p>Execute custom code to modify the import data on the fly.<\/p>\n\n\n\n\n\n<p>Learn about WP All Export's API and hooks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use powerful XPath filters to import only the records you want from your file, using a visual filter builder, no XPath knowledge is needed.<\/p>\n","protected":false},"author":96198,"featured_media":5808336,"parent":2991540,"menu_order":25,"template":"","tags":[138,140,139],"content_author":[213],"search_tags":[],"class_list":["post-5822632","documentation","type-documentation","status-publish","has-post-thumbnail","hentry","tag-w-article","tag-w-faq","tag-w-howto","content_author-editorial-staff"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Filtering Import Data with XPath - WP All Import<\/title>\n<meta name=\"description\" content=\"Use powerful XPath filters to import only the records you want from your file, using a visual filter builder, no XPath knowledge is needed.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wpallimport.com\/documentation\/filtering-with-xpath\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Filtering Import Data with XPath - WP All Import\" \/>\n<meta property=\"og:description\" content=\"Use powerful XPath filters to import only the records you want from your file, using a visual filter builder, no XPath knowledge is needed.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wpallimport.com\/documentation\/filtering-with-xpath\/\" \/>\n<meta property=\"og:site_name\" content=\"WP All Import\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/groups\/wpallimport\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-08T18:31:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Filtering-Import-Data-with-XPath.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Filtering Import Data with XPath - WP All Import\" \/>\n<meta name=\"twitter:description\" content=\"Use powerful XPath filters to import only the records you want from your file, using a visual filter builder, no XPath knowledge is needed.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Filtering-Import-Data-with-XPath.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n\t<meta name=\"twitter:label2\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data2\" content=\"Editorial Staff\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wpallimport.com\/documentation\/filtering-with-xpath\/\",\"url\":\"https:\/\/www.wpallimport.com\/documentation\/filtering-with-xpath\/\",\"name\":\"Filtering Import Data with XPath - WP All Import\",\"isPartOf\":{\"@id\":\"https:\/\/www.wpallimport.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.wpallimport.com\/documentation\/filtering-with-xpath\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.wpallimport.com\/documentation\/filtering-with-xpath\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Filtering-Import-Data-with-XPath.jpg\",\"datePublished\":\"2023-10-07T19:15:21+00:00\",\"dateModified\":\"2025-12-08T18:31:06+00:00\",\"description\":\"Use powerful XPath filters to import only the records you want from your file, using a visual filter builder, no XPath knowledge is needed.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.wpallimport.com\/documentation\/filtering-with-xpath\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wpallimport.com\/documentation\/filtering-with-xpath\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wpallimport.com\/documentation\/filtering-with-xpath\/#primaryimage\",\"url\":\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Filtering-Import-Data-with-XPath.jpg\",\"contentUrl\":\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Filtering-Import-Data-with-XPath.jpg\",\"width\":1200,\"height\":630,\"caption\":\"Filtering Import Data with XPath\"},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wpallimport.com\/#website\",\"url\":\"https:\/\/www.wpallimport.com\/\",\"name\":\"WP All Import\",\"description\":\"Import XML &amp; CSV to WordPress\",\"publisher\":{\"@id\":\"https:\/\/www.wpallimport.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wpallimport.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.wpallimport.com\/#organization\",\"name\":\"WP All Import\",\"url\":\"https:\/\/www.wpallimport.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wpallimport.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2020\/02\/logo-v5-no-text.svg\",\"contentUrl\":\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2020\/02\/logo-v5-no-text.svg\",\"width\":199,\"height\":37,\"caption\":\"WP All Import\"},\"image\":{\"@id\":\"https:\/\/www.wpallimport.com\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Filtering Import Data with XPath - WP All Import","description":"Use powerful XPath filters to import only the records you want from your file, using a visual filter builder, no XPath knowledge is needed.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wpallimport.com\/documentation\/filtering-with-xpath\/","og_locale":"en_US","og_type":"article","og_title":"Filtering Import Data with XPath - WP All Import","og_description":"Use powerful XPath filters to import only the records you want from your file, using a visual filter builder, no XPath knowledge is needed.","og_url":"https:\/\/www.wpallimport.com\/documentation\/filtering-with-xpath\/","og_site_name":"WP All Import","article_author":"https:\/\/www.facebook.com\/groups\/wpallimport","article_modified_time":"2025-12-08T18:31:06+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Filtering-Import-Data-with-XPath.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_title":"Filtering Import Data with XPath - WP All Import","twitter_description":"Use powerful XPath filters to import only the records you want from your file, using a visual filter builder, no XPath knowledge is needed.","twitter_image":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Filtering-Import-Data-with-XPath.jpg","twitter_misc":{"Est. reading time":"3 minutes","Written by":"Editorial Staff"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wpallimport.com\/documentation\/filtering-with-xpath\/","url":"https:\/\/www.wpallimport.com\/documentation\/filtering-with-xpath\/","name":"Filtering Import Data with XPath - WP All Import","isPartOf":{"@id":"https:\/\/www.wpallimport.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wpallimport.com\/documentation\/filtering-with-xpath\/#primaryimage"},"image":{"@id":"https:\/\/www.wpallimport.com\/documentation\/filtering-with-xpath\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Filtering-Import-Data-with-XPath.jpg","datePublished":"2023-10-07T19:15:21+00:00","dateModified":"2025-12-08T18:31:06+00:00","description":"Use powerful XPath filters to import only the records you want from your file, using a visual filter builder, no XPath knowledge is needed.","breadcrumb":{"@id":"https:\/\/www.wpallimport.com\/documentation\/filtering-with-xpath\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wpallimport.com\/documentation\/filtering-with-xpath\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wpallimport.com\/documentation\/filtering-with-xpath\/#primaryimage","url":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Filtering-Import-Data-with-XPath.jpg","contentUrl":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/05\/Filtering-Import-Data-with-XPath.jpg","width":1200,"height":630,"caption":"Filtering Import Data with XPath"},{"@type":"WebSite","@id":"https:\/\/www.wpallimport.com\/#website","url":"https:\/\/www.wpallimport.com\/","name":"WP All Import","description":"Import XML &amp; CSV to WordPress","publisher":{"@id":"https:\/\/www.wpallimport.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wpallimport.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.wpallimport.com\/#organization","name":"WP All Import","url":"https:\/\/www.wpallimport.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wpallimport.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2020\/02\/logo-v5-no-text.svg","contentUrl":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2020\/02\/logo-v5-no-text.svg","width":199,"height":37,"caption":"WP All Import"},"image":{"@id":"https:\/\/www.wpallimport.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/documentation\/5822632","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/documentation"}],"about":[{"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/types\/documentation"}],"author":[{"embeddable":true,"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/users\/96198"}],"version-history":[{"count":0,"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/documentation\/5822632\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/documentation\/2991540"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/media\/5808336"}],"wp:attachment":[{"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/media?parent=5822632"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/tags?post=5822632"},{"taxonomy":"content_author","embeddable":true,"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/content_author?post=5822632"},{"taxonomy":"search_tags","embeddable":true,"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/search_tags?post=5822632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}