WordPress.org

Ready to get started?Download WordPress

Forums

WP Realtime Sitemap
[resolved] Excluding (34 posts)

  1. kiralyandras
    Member
    Posted 3 years ago #

    Is there any way to exclude pages from the generated site map? I have some created for techical purposes, so i need them but these are not relevant for the visitors. Therefore i would like to hide these from the sitemap.

    Thanks in advance!

    http://wordpress.org/extend/plugins/wp-realtime-sitemap/

  2. Rincewind
    Member
    Plugin Author

    Posted 3 years ago #

    There isn't no, how do you hide them at the moment ? by category ? or by individual id's ?

  3. kiralyandras
    Member
    Posted 3 years ago #

    I do not hide them at the moment. This is exactly what i would like to do and i don't mind the way to do it (just the result). Those pages are not hidden because i need them but not in the sitemap.

  4. Rincewind
    Member
    Plugin Author

    Posted 3 years ago #

    Sorry what I meant was are they currently showing in the navigation on your site as it stands at the moment, ? disregarding what is showing in the sitemap created by my plugin.

    If they are showing and you dont wish this, why dont you change the visibility of the pages to private ? this will remove them from the sitemap created by my plugin, and it will also remove them from the navigation on your site, you will still be able to view these pages if you know there path, they just wont be in the navigation.

    Hope this helps, if not please say.

  5. kiralyandras
    Member
    Posted 3 years ago #

    The navigation is custom made and therefore contains only the elements what i need. At first i thought hiding is not a solution, because in that case the functionality will break, but i tested it and i can say it is a real solution. For example i have a blank prepared page for the result list of Google custom search which is hidden now and the searching still works, so now i am happy.

    Thanks for the idea!

  6. Rincewind
    Member
    Plugin Author

    Posted 3 years ago #

    No worries glad its working for you.

  7. farrelldoc
    Member
    Posted 3 years ago #

    I tried setting the pages I wanted to exclude to private, but then I get an error that they are not found when I navigate to them. The pages are payment cancellation confirmation and payment success confirmation (thank you) pages after a visitor pays with PayPal. When PayPal goes back to the page (which is just the URL), the "Sorry this page is not found" page is displayed with the search box (if I set them to Private).

    I would like to exclude them from the sitemap.

    Thanks,
    Karen

  8. farrelldoc
    Member
    Posted 3 years ago #

  9. Rincewind
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Karen,

    This is a problem you have with WordPress itself and not my plugin, however can you confirm that each page you dont wish to be shown on the site is :-

    a) has its status set to "published".
    b) has its visibility set to "private".

    If both these are true, then its a problem with WordPress and unfortunately I am unable to help any further, if there not true, then please correct this and you will find it will work just like it does for the other user above.

  10. travisneel
    Member
    Posted 3 years ago #

    I too needed to generate a sitemap that only displays the pages that are actually in use on the site. I made a small modifictaion to the plugin to use wp_nav_menu instead of wp_list_pages and that seems to work. However, it would be nice if that were an option, since the nav menu actually has a list of pages that are in use.

  11. Rincewind
    Member
    Plugin Author

    Posted 3 years ago #

    If a page is not in use then should this page not be either deleted or have its status set to draft, at which point it will no longer appear on the sitemap.

  12. farrelldoc
    Member
    Posted 3 years ago #

    Sorry,

    I did not see the first two replies for some reason.

    The pages are public pages and have to be; however, they only display when a user follows a specific path: either making a successful payment from PayPal or cancelling their payment from PayPal. Thus, these pages are not linked to any pages within the site except the PayPal buttons themselves. These pages must be published and they must be public so that they will display, and without a password requirement when the user either successfully completes a payment or cancels a payment.

    Since these pages do not make sense for a user in any other context, I would like to exclude them from the sitemap.

    Thanks,
    Karen

  13. Rincewind
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Karen,

    I have already explained to you how to do this.

    My plugin will only show pages/posts that have a status of published, therefore if my plugin is showing these pages then you have them as published on your blog and therefore they should be shown, if this is not what you want then you need to change the pages/posts to be private.

    The status should be set to published first, then change the visibility from public to private, when you have done this wordpress itself will change the status to privately published, and my plugin will no longer display the pages/posts that are set like this on the sitemap.

  14. farrelldoc
    Member
    Posted 3 years ago #

    Okay,

    Thanks for the explanation again; however, as I said these pages must remain public. I'll just have to leave them in the sitemap.

    Thanks,
    Karen

  15. travisneel
    Member
    Posted 3 years ago #

    Hi Rincewind.

    Thanks for the reply.

    Perhaps I should have worded it differently.

    For example: I may have pages where the content is being pulled from a page, but not linked anywhere on the site. I may have Page's listed in the footer nav that aren't part of the main site's navigation that I don't want to appear in the Sitemap. I have pages that make up for the shortcomings in Custom Post Types that I don't want to appear in the site map, but they are actually in use. It seems a little odd to force every page on the site to appear in the Sitemap when there's already a function that displays only the pages that are part of the site's navigation.

  16. Rincewind
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Karen,

    You dont seem to understand what it is that I am trying to explain, the pages themselves are still public and will not require a password or anything like that for them to be viewable.

    They can be viewed by anyone that knows the url to the pages, so will work perfectly fine for you as paypal will be redirecting the user to the urls and the page will load perfectly fine.

    Why dont you just try it and you will see what I mean.

  17. farrelldoc
    Member
    Posted 3 years ago #

    Thank you for your quick reply.

    I have just finished testing extensively, and when I change the page to Private and navigate to it, I get a notification that it is not found. When I change it back to Public, the page displays. There is no other difference other than the Public and Private setting.

    Public:
    http://www.bayareaball.org/tournaments/thank-you/

    Private:
    http://www.bayareaball.org/tournaments/cancel/

    Please let me know if there is something I am missing here.

    Thanks,
    Karen

  18. Rincewind
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Karen,

    Can you have a look at this image this is how it should show in your page/post, for it to still be visible and for it to not be on the sitemap by my plugin.

    http://s1118.photobucket.com/albums/k611/Rincewind1/WordPress%20Plugins/?action=view&current=screenshot-3.png

  19. farrelldoc
    Member
    Posted 3 years ago #

    That is exactly how mine looks. Of course the dates are different. :)

    http://www.farrelldoc.com/images/ScreenShot00013.jpg

  20. Rincewind
    Member
    Plugin Author

    Posted 3 years ago #

    Ok I am confused as to how its not working for you, I have told this to everyone that has asked for you are asking, both on here as you can see from the guy at the beginning who asked how to do this, told him to do it this way and it worked for him and countless others, and works prefectly fine in my development site.

    Do you have a site that you test changes on before putting them live ? if so can you put one page as suggested in the screenshot and one page published as you would normally have it and let me see the links.

    also if you are able to create me a login on the test site, you can contact me on my website via the contact us link, to provide the additional information.

  21. farrelldoc
    Member
    Posted 3 years ago #

    Rincewind,

    No, I do not have a test site. This site is live. However, the links I posted above have one page that is published in the screenshots and one that is normal:

    Public:
    http://www.bayareaball.org/tournaments/thank-you/

    Private:
    http://www.bayareaball.org/tournaments/cancel/

    Go ahead and register, and I will make you an admin.

  22. Rincewind
    Member
    Plugin Author

    Posted 3 years ago #

    Ok I have registered, let me know when have made me an admin and will have a look into it.

  23. farrelldoc
    Member
    Posted 3 years ago #

    Done. Thanks!

  24. Rincewind
    Member
    Plugin Author

    Posted 3 years ago #

    Ok very confusing problem, your using v3.0.1 i'm using 3.0.4 I hidden my contact page on my website, and logged out, when I went to view the page by typing in the url as this is the only way I am able to get to the page now it said as the name of the page "Private: Contact Me" instead of just "Contact Me" what works for me doesn't work on your website, the only thing I can think it can be is the version of wordpress you are using.

    Can you update your wordpress to v3.0.5, and try it again.

  25. farrelldoc
    Member
    Posted 3 years ago #

    Okay, I did that. It didn't work, but my theme did get blown away. I have a backup. I just have a bit of work to do now...

  26. Rincewind
    Member
    Plugin Author

    Posted 3 years ago #

    Yeah I noticed, this is a very confusing problem something that I cant replicate on my website running v3.0.5, I guess it must be something to do with the theme your using thats all I can think of.

    I will do some more testing but its looking more likely that I will infact just add in the functionality of being able to include/exclude posts and pages by id.

  27. farrelldoc
    Member
    Posted 3 years ago #

    Still working on it--my backup file was corrupted. Sigh.

  28. farrelldoc
    Member
    Posted 3 years ago #

    That would be great Rincewind. I would for one greatly appreciate the upgrade. (And next time I'll verify my backup BEFORE I upgrade WP!)

  29. Rincewind
    Member
    Plugin Author

    Posted 3 years ago #

    I see thats not good, the site itself looks ok tho, what work is it your having to do if you dont mind me asking ?

  30. farrelldoc
    Member
    Posted 3 years ago #

    I had to redo all the custom .css. My backup file was completely corrupt. I could not extract the files, and I had never saved a copy to my local machine other than the zipped backup! It doesn't look as good as it did before, but it's good enough. :\

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic