• Resolved Mario62rus

    (@mario62rus)


    Hi. I want to add additional pages to the site map and use your filter aioseo_sitemap_additional_pages. I added to the file functions.php the code of your example. Now a new section has been added to the site map https://www.skyway.kz/addl-sitemap.xml, but if you open this section, we see the error “Whoops! There are no posts here”.
    What could be the problem?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support J Burns

    (@subiewrx)

    Hi @mario62rus,

    You can add additional pages in Sitemaps > General Sitemap, then scroll down and enable Additional Pages. You can then add your page URLs.

    Please let me know if this helps or if you have any other quesions.

    Thanks!

    Thread Starter Mario62rus

    (@mario62rus)

    I know this method. I need an automatic solution via PHP and a file functions.php.
    And yet, why doesn’t the aioseo_sitemap_additional_pages filter work? Any ideas?

    Thread Starter Mario62rus

    (@mario62rus)

    I guessed why the filter didn’t work. It is necessary to turn on the “Additional Pages” switch, which you mentioned. Only after that the filter starts working. It’s a little weird, but OK.
    The issue is resolved. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hook “aioseo_sitemap_additional_pages” does not work.’ is closed to new replies.