• Resolved david221

    (@david221)


    I just updated the plugin and I’ve noticed that it had changed the layout of my entire sitemap for my website. I originally had only page links appearing, but now I also have a post section sitting on the top of the page with the text saying “Sorry, no posts matched your criteria”; which is obvious because I don’t have posts on my site.

    I was running version 1.65 before I updated to 1.81. Can I remove the empty post block without having to use CSS to hide the elements?

    Thanks.

    https://www.ads-software.com/plugins/simple-sitemap/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author David Gwyer

    (@dgwyer)

    Hi David,

    There were some pretty big changes in the last plugin update. You can now specify which post types appear (and the order) via the ‘types’ shortcode attribute.

    By default this is set to ‘post’ and ‘page’ post types. To display only pages change your shortcode to

    [simple-sitemap types="page"]

    Please see the plugin settings page for more details on the new updates.

    Thread Starter david221

    (@david221)

    Thanks for your response David.

    I checked out the instructions under Settings and I managed to exclude the pages and posts that didn’t belong there, e.g.:

    [simple-sitemap types="page" orderby="ID" exclude="1,2,3"]

    ‘Order By’ rearranges the order the site map according to the post/page ID. That did half the trick. But the problem at the moment is that two page links are not in the correct order on the site map. Why is this the case? I had these pages re-arranged according to how I wanted by configuring the order number i.e. 1) Home 2) About 3) Products 4) Contact. Does the ‘orderby’ shortcode only identify the ID when the page is first published?

    Plugin Author David Gwyer

    (@dgwyer)

    Hi David,

    How did you order the pages before, in the previous version?

    Are you trying to order the pages according to a particular sort order? i.e. original publish date, modified date, author, title, post ID etc? (you can sort via all these in the new version)

    Or are you trying to order the pages manually?

    Also, is the publish status of the pages you listed set to ‘published’, to rule out any issues with leaving out draft or pending posts?

    Thread Starter david221

    (@david221)

    Hi, sorry for the late reply.

    When I built this site, I first published each page and then changed the order i.e. Page Attributes->Order.

    All the pages on my site map are definitely published, and I don’t have any posts pending or anything else saved as a draft.

    I think the problem is I first published the third page of my site before I created the second page.

    Plugin Author David Gwyer

    (@dgwyer)

    Hi David,

    It sounds like you are using a plugin to create a custom sort order. In which case the sitemap plugin probably won’t be able to match that as it just pulls pages from the database sorted via date, date, author, title, post ID etc.

    Thread Starter david221

    (@david221)

    Yes, I knew it would only sort by post ID in the database and not via the custom order.

    Thanks for the help anyway.

    Plugin Author David Gwyer

    (@dgwyer)

    No problem. Sorry, couldn’t help further.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Sitemap changes after latest update 1.81’ is closed to new replies.