WordPress.org

Ready to get started?Download WordPress

Forums

WP Sitemap Page
[resolved] [closed] wp-sitemap-page does not list custom post types (9 posts)

  1. ntsasng
    Member
    Posted 10 months ago #

    Hi Tony
    Thanks for the plugin and works great, I'm using wp-sitemap-page 1.0.5. But, does not list custom post types??
    Hope this help. Thanks
    http://wordpress.org/plugins/wp-sitemap-page/

  2. Rémy
    Member
    Posted 10 months ago #

    Same for me, only default pages and posts are displayed, no warning or notice with WP_DEBUG on true too. Looking at the source code, there is nothing to get & output the CPT. Maybe a missed upload when updating to 1.0.5 ?

  3. Tony
    Member
    Plugin Author

    Posted 9 months ago #

    Hi everyone.
    So sorry about this error. I just noticed your messages and fix this problem through a new version. Indeed I made a mistake when I have updated to 1.0.5.

    Have a look on the 1.0.6 version.

    So sorry again.
    Thank you for your help.

    Have a good day.

  4. ntsasng
    Member
    Posted 9 months ago #

    I have download lastest version (1.0.6 version), but it not working.
    Product is custom post type, and I was create two products item, but at site map page it not show.
    http://s17.postimg.org/4ta4cb3rz/sitemap.png

  5. Tony
    Member
    Plugin Author

    Posted 9 months ago #

    Hello.
    Hum, this is strange. I tried it on one of my website and it's working fine.
    Please, could you tell me more about the way you created the CPT "product" on your website ?

    Thanks.

  6. ntsasng
    Member
    Posted 9 months ago #

    Hi Tony.
    This is my CPT code in functions.php http://pastebin.com/qnFMBtXk. I'm using wp 3.7.1, Twenty Twelve theme.

  7. MickeyRoush
    Member
    Posted 9 months ago #

    Same here. It shows the CPT titles, but nothing else.

  8. kallym
    Member
    Posted 9 months ago #

    Same here, I have a custom post type of "portfolio". The code in the page is as follows:

    <h2 class="wsp-portfolios-list">Portfolio</h2>
    <ul class="wsp-portfolios-list"></ul>

    So, the ul is there, but not the list items.

  9. Tony
    Member
    Plugin Author

    Posted 9 months ago #

    Hi again.
    I discovered what went wrong. The function wp_list_pages() only worked for hierarchical Custom Post Type (CPT). So I use another way to list all the items of a CPT.
    You just have to upgrade to the version 1.0.7. And I do not show the title if there isn't any posts in a CPT.

    Hope that helps.
    Thanks again for your feedbacks, that was very useful.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic