Format Individual Sitemap Items

This is one of many demos of our Simple Sitemap Pro WordPress plugin. Click here to see more examples.
Using the simple_sitemap_pro_title_text filter you can format individual sitemap items with ease! The filter works by passing the title text and post ID for each sitemap item to the controlling callback function.

Below we have four examples of using this filter.

As you can see the first sitemap item has been appended with the post ID in brackets, and the second one has had bold and italic styles applied and no underline. Two more sitemap items have had an icon added to the beginning and end of the text respectively.

You can use this filter to transform sitemap items exactly how you want. For instance you could also reduce the length of page titles if they were too long.

You have complete control over how each item is formatted.