URL Extractor Extension

URL Extractor allows you to extract URLs using custom tokens (Title, Post URL, Date, Status, Author, Website URL, Website Name) of any post or page from your Child Sites and export them as CSV or TXT files.

Provided search options will enable you to refine your search by:

  • Type: Post or Page
  • Status: Published, Pending, Private, Scheduled, Draft, Trash
  • Arbitrary keywords
  • Date Range
  • Child Sites

You can easily customize your output. Combining the provided tokens and custom characters, create any output structure you need.

This is often helpful for both client reports and indexing software.

How to use URL Extractor

URL Extractor Extension 1

 

  1. Navigate to MainWP Dashboard > Extensions > URL Extractor page
  2. In the Output format field, either type in the Available Tokens or click on the green bubbles of respective tokens to insert them automatically
    NOTE: You can also combine plain text with the token names. For example: This is the Post URL [post.url], and this is the Post Title [post.title]
  3. Type in the desired text in the Separator field
    NOTE: This text will be used to separate individual entries in the output. By leaving the field empty, the individual entries will be placed in a new line.
  4. In the Sidebar
    1. Select the desired Sites, either individually or by Tags
    2. Select the post type, either Post or Page, or both
    3. Select one or multiple statuses from the list: Published, Pending, Private, Scheduled, Draft, Trash
    4. Optionally filter the results by a Keyword
    5. Select the desired Date Range
  5. Click the Preview Output button
  6. Review the Output in the popup modal and Export it as .txt or as .csv file

 

 

URL Extractor Templates

The values in the Output format and Separator fields can be saved as templates for speed and convenience.

Saving a template
URL Extractor Extension 2

  1. Navigate to MainWP Dashboard > Extensions > URL Extractor page
  2. Enter the desired text in the Output format and Separator fields
  3. Enter the template name
  4. Click the Save Template button

Loading a template

URL Extractor Extension 3

  1. Navigate to MainWP Dashboard > Extensions > URL Extractor page
  2. Select the desired template from the Available Templates dropdown
  3. Click the Use Template button

 

Deleting a template

  1. Navigate to MainWP Dashboard > Extensions > URL Extractor page
  2. Select the desired template from the Available Templates dropdown
  3. Click the Delete button

 

 

Increase the maximum number of Posts returned from a Child site

URL Extractor extensions returns a maximum of 50 posts from a single child site. This number can be customized with a filter.

As an example, this code snippet will increase the maximum number of posts to 500.

add_filter( 'mainwp_url_extractor_max_posts_number', 'max_url_extractor_posts' );

function max_url_extractor_posts() {
return 500;
}

The easiest way to insert this code snippet to the MainWP Dashboard site is by using our Custom Dashboard extension.

  1. Install the Custom Dashboard extension
  2. Add the code snippet to the PHP tab in the Custom Dashboard extension
    URL Extractor Extension 4
  3. Adjust the number of returned posts as desired
  4. Click the Save Changes button