WP Site Mapping

WP Site Mapping

By Henri Benoit

WP Site Mapping allows to add a sitemap to your WordPress site using a shortcode, calling a PHP function or using one of the two provided widgets.

Using the shortcode doesn’t mean you need to write code. Just press the sitemap button in your visual post editor and all options available for the shortcode will be displayed. Press OK when you are done and the shortcode will be inserted with the appropriate parameters.

Of course you can also add the shortcode yourself using the following syntax:

[showsitemap] for the default sitemap or [showsitemap arg1 arg2…] using the following arguments:

  • depth: defines how many levels of posts will be shown e.g. depth=1 means that only parent posts will be shown, depth=2 means that parent posts as well as one level of children posts will be displayed.

  • exclude=1 means that all posts/pages will be displayed in the sitemap except the ones matching one of the defined criteria. If not present, only the posts/pages matching at least one of the defined criteria will be displayed.

  • grouponly=1 means that only the group names (e.g. category, month, tag) will be diplayed with the post count, but not the posts themselves

  • post_id: List of post IDs to include or exclude e.g. post_id=”32,9-11,33″ will include/exclude all posts with the IDs 9, 10, 11, 32 and 33.

  • cat: List of category IDs to include or exclude e.g. cat=”32,11,33″ will include/exclude all posts of the categories with the IDs 11, 32 and 33.

  • tag: List of tag IDs to include or exclude e.g. tag=”32,11,33″ will include/exclude all posts with the tags with the IDs 11, 32 and 33.

  • fmt: List of post formats to include or exclude e.g. fmt=”post-format-aside,post-format-image”

  • type: List of post types to include or exclude e.g. type=”post,page”

  • aut: List of post authors to include or exclude e.g. aut=”1,2″ will include/exclude posts which author is the user with the user ID 1 or 2

  • group: Defines how entries in the sitemap will be grouped e.g.:

    • group=title means that the list will be sorted alphabetically without any grouping
    • group=date means that the list will be sorted by date without any grouping
    • group=author means that the list will be grouped by author name
    • group=category means that the list will be grouped by category
    • group=tag means that the list will be grouped by tag
      or
  • link: defines a template for displaying the link to posts/pages. Note that you need to properly escape the value of this attribute e.g. link="<a title="%title%" href="%permalink%">%title%</a>". You can use the following variables in the template:

    • %title%: The title of the post
    • %permalink%: The URL of the post
    • %year%: The year of the post, four digits, for example 2004
    • %monthnum%: Month of the year, for example 05
    • %day%: Day of the month, for example 28
    • %hour%: Hour of the day, for example 15
    • %minute%: Minute of the hour, for example 43
    • %second%: Second of the minute, for example 33
    • %post_id%: The unique ID # of the post, for example 423
    • %category%: A comma separated list of the categories for this post
    • %author%: The author name
  • class: Class to be applied to the containing DIV to be used to CSS styling and for use in JavaScript.

  • id: The ID to be used for the containing DIV to be used to CSS styling and for use in JavaScript.

But the easiest way to learn how to use the shortcode is to use the dialog displayed when clicking the button in the visual editor. It also is easier to handle escaping when you use the dialog.

If you need to have the sitemap in a sidebar, you should use on the two widgets provided by this plugin.

The first widget is called “Site Map” and will provide you with the same possibilities as the shortcode but in a widget. This widget will show a sitemap in an HTML5 navigation tag (<nav>).

The second widget is called “Menu Site Map” and will allow you to show the entries defined in a navigation menu. Define a menu in Appearance > Menus and select it in this widget to have them displayed.

  1. Upload the folder wp-site-mapping to the /wp-content/plugins/
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

How can I contact you with a complaint, a question or a suggestion?

Send an email to henri.benoit@gmail.com

0.3

  • Support for reverse order sorting

0.2.2

  • Fixed button in visual editor

0.2.1

  • Added option for only showing group headers (with count)

0.2

  • Image placeholder for shortcode in visual editor
  • Placeholder can be double clicked to edit an existing shortcode
  • Requires WP 3.9 because of TinyMCE 4
  • Fixed missing posts
  • Fixed wrong handling of excludes
  • Filters also affect groups
  • Implemented grouping by date

0.1.2

  • Links are now fine: http://domainname.com/postname/ instead of domainname.com”http://domainname.com/postname/
  • There was a problem with the checkbox defining whether it should show only posts matching the criteria or all except those.

0.1.1

  • Fixed incompatibility with WP Advertize It.

0.1

  • First version.
Version
0.3
Last Update
10 years ago
Download
17,079+
Tested up to:
4.1.33
Categories:
General

Screenshots

Alternative Plugins for WP Site Mapping

A very fast caching engine for WordPress that produces static html files.

Categories: General

Essential elements for modern websites. Add buttons, sliders, heroes, maps, images, carousels, features, icons, more. Create dynamic pages easily.

Categories: General

Adds a more advanced paging navigation interface.

Categories: General

Multibyte functionality enhancement for the WordPress Japanese package.

Categories: General

A comprehensive collection of visual components for your site

Categories: General

Make email delivery easy for WordPress. Connect with SMTP, Gmail, Outlook, SendGrid, Mailgun, SES, Zoho, + more. Rated #1 WordPress SMTP Email plugin.

Categories: General

Get caching and more with this powerful cache plugin. Cache, optimize images, clean your database and minify for maximum performance.

Categories: General

The best WordPress contact form plugin. Drag &amp; Drop form builder to create beautiful contact forms, payment forms, &amp; other custom forms.

Categories: General

Get website traffic insights with GDPR/CCPA compliant, privacy-friendly analytics. Includes visitor data, stunning graphs, and no data sharing.

Categories: General

Discover the Lists with WP Site Mapping

My Faves

By stav2099

My Faves

namaroopa before migrate

By lifeofaclickwpfav

vol intsall

By vane vrb

startup

By Vitor Francisco Freitas dos Santos

marketing digital inicial

Credit Platform

By Elliot Gerchak

exp

By kan imai

FarrowSystem.EU - ALL Plugins

By Andreas Tyrosvoutis

A save of all the plugins from when it was migrated from multisite. Just for historical purposes.

OS WooCommerce Plugins New Install

By Brett Walling

My list of plugins I use for WooCommerce sites.

My Faves

By Faith Atwater-Cheltenham

My Faves