Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Khang Minh

    (@oddoneout)

    Hello,

    You have to type in the title of the posts you want to exclude (at least 2 characters). Let me know if that doesn’t solve the issue.

    hi there .. good plugin .. the only problem is see i can not find out how to exclude by category .
    for example i need to exclude all post or pages in catetory ‘noindex’
    any help ?

    Plugin Author Khang Minh

    (@oddoneout)

    You can navigate to BWP Sitemaps >> XML Sitemaps >> Exclude items, choose to exclude the “noindex” category, and then check “Exclude posts by terms” checkbox.

    For more info, see: https://betterwp.net/wordpress-plugins/google-xml-sitemaps/#exclude-items

    if i am right i did > Exclude items >select a taxonomy >
    i selected ‘category’ then in below box typed ‘noindex’ if found it and i pressed the button exclude selected items and checked the ‘also excludeposts that …
    now even in show/hide excluded items i can see ‘noindex’ but again in sitemaps nothing changes.. flushed again .. again pages belonging to noindex are indexed .. please any idea?

    Plugin Author Khang Minh

    (@oddoneout)

    Are you enabling sitemap cache? If you do try pressing Ctrl+F5 when viewing your sitemap, or try regenerating them.

    by the way when excluding by some words from post’s title it works like a charm .. just to clear > Exclude terms when i choose a category it can not filter post’s belonging to the category out..

    found something .. when i exclude the noindex category post’s belonging to that category are not indexed good..
    but still pages belonging to ‘noindex’ category are indexed.. is there something i should do ?

    and i use below func in finctions.php to enable cat for pages but perhaps it’s after plugin load so should i code something somewhere?

    function add_category_to_pages() {
    // Add category metabox to page
    register_taxonomy_for_object_type(‘category’, ‘page’);
    }
    // Add to the admin_init hook of your theme functions.php file
    add_action( ‘admin_init’, ‘add_category_to_pages’ );

    Plugin Author Khang Minh

    (@oddoneout)

    By default page sitemap is handled by a different module and doesn’t support exclusion by category yet. Why are you using category for page anyway? I believe category is not meant for page.

    well i used to have many my program based pages which are nonsenses to seo and also i always use many posts but gategoriesed below a top page .. u see as pages can use template that’s why in some aspect pages are important to build my site .. any idea sir?
    by the way in normal wp query these pages could be found in ‘noindex’ cat .. and just to say it may help the other plugin ‘google-sitemap-generator’ can understand pages in the category ..
    after all if any help to use >
    get_post_meta( get_the_ID(), ‘noindex’, true) i really appreciate ..

    Plugin Author Khang Minh

    (@oddoneout)

    For now the only way is to create a custom module directory and then copy and rename post.php to page.php and put it inside that custom module directory.

    See https://betterwp.net/wordpress-plugins/google-xml-sitemaps/#what-is-a-sitemap-module for more info.

    Also, please consider creating a separate topic for your issue, we do not want to spam the original poster.

    sorry for not creating new topic ..

    am i write? > just created modules_custom folder beside the original module folder then copied the post.php from module into modules_custom and just renamed the file to page.php ..
    but should i write something i functins.php file ? nothing happend yet..

    Plugin Author Khang Minh

    (@oddoneout)

    You need to set the custom module directory via BWP Sitemaps >> Advanced Options >> Sitemap Modules >> Custom module directory. You should put that directory somewhere else, perhaps in the same place as your wp-config.php.

    hello thank for helping ..

    i did so and first there was error >
    BWP Google XML Sitemaps Error: There is no class named BWP_GXS_MODULE_page in the module file page.php.

    changed this to BWP_GXS_MODULE_POST this BWP_GXS_MODULE_PAGE ..

    then this error >
    BWP Google XML Sitemaps Error: page.xml does not have any item. There are no public Page. Enable/disable sitemaps via BWP Sitemaps >> XML Sitemaps.

    re-enabled the plugin and re-enabled page option flush ctr+f5 .. the same error

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Posts don't show up when I look to exclude’ is closed to new replies.