Skip to main content

Questions tagged [sitemap]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

I cannot generate new sitemap on my wordpress website

So i bought a already used domain and created a Wordpress website on it. After the completion of the website I generated the sitemap using a plugin (rankmath as well as yoat) but its not generating a ...
Kashif Yaqoob's user avatar
0 votes
1 answer
18 views

How to include empty terms into wp-sitemap.xml?

I have a lot of terms that don't have any posts attached to. By default, such terms are not displayed in the wp-sitemap.xml. How can I make the sitemap include empty terms?
Ricardo Desouza's user avatar
0 votes
0 answers
28 views

Show all categories pages in WordPress sitemap?

Good day, dear specialists. There is such a code $categoriesForSitemap = get_categories(array( 'hide_empty' => 1, 'depth' => 0, 'hierarchical' => false )); foreach($categoriesForSitemap ...
Te43922's user avatar
0 votes
0 answers
14 views

How to include empty archives in sitemap?

I am using free Yoast plugin and I see that the sitemap not include empty archives, I dont see any setting related to that. Is there any option to make empty archives included in the sitemap? I don'...
Basecode's user avatar
0 votes
0 answers
24 views

sitemap.xml uploaded but if i type t.xml showing sitemap instead of 404 not found

I am having unusual issue on my website i have created sitemap.xml and uploaded to publoc_html i also have yostseo installed but i am using manual sitemap so the issue i am facing is when ever i type ...
Usman Khan's user avatar
-1 votes
1 answer
460 views

Separate Sitemaps for Each Language with Polylang and Yoast SEO

I have a WordPress website with two essential plugins, Polylang for multilingual support and Yoast SEO for sitemap generation. Currently, the sitemap can be accessed through mysite.com/sitemap_index....
user234026's user avatar
0 votes
1 answer
46 views

How can I generate a page that will always contain a list all the pages (not posts)?

I want to have a list of all the articles in my WP website, so it will be updated each time a new one is added. How can I do this? And how can I include it in my home page?
OMGsh's user avatar
  • 101
0 votes
1 answer
291 views

Redirect wp-sitemap.xml not working

I'd like to redirect wp-sitemap.xml to a custom sitemap file. I'm using template_redirect but the request isn't redirected. I attempted to debug it with die() but it doesn't work either. function ...
Ryan's user avatar
  • 53
0 votes
1 answer
165 views

How to get post ID after removing that post?

Is it possible to get WordPress post ID after removing that post? I have found out that I need that ID to remove the page from the site map, but I do not have the post ID, becuase I have deleted it. ...
Albert's user avatar
  • 1
0 votes
1 answer
237 views

Yoasts plugin sitemap not detecting correct category URL format

My client wants the following URL: https://example.com/category-name So for that, I added . in the Category base under Settings > Permalinks and now my Category URL looks like how the client wants ...
Nikita Gupta's user avatar
1 vote
0 answers
52 views

Add image or video tags to WP Sitemap

Is there a way to add tags to the default WP core generated sitemaps other than four default ones ('loc', 'lastmod', 'changefreq', 'priority') WP allows using the wp_sitemaps_posts_entry filter? For ...
gan's user avatar
  • 211
0 votes
0 answers
120 views

How i can add video, audio and image sitemap in existing wordpress sitemap

I want to use WordPress default sitemap but this is not included image, video, and audio ( podcast ) sitemap. Can anyone tell me how I can add manually which keeps automatically updating with new data?...
Pooja Shree Gaur's user avatar
0 votes
0 answers
282 views

Hide plugins and theme from public

I like to hide all or some of my plugins and themes and CMS from public such that the users cannot detect which plugins/themes/CMS I used to build my website. Please let me know if it is possible to ...
asad's user avatar
  • 103
0 votes
1 answer
72 views

html sitemap via recursive function

I'm trying to render my page structure as an ordered list (<ol>) showing the hierarchy using nested ordered lists. So it should look something like <ol> <li> About <ol&...
Daveh0's user avatar
  • 191
0 votes
1 answer
91 views

Embed sitemap in a page

I've seen that many sites have a dedicated page for a sitemap, not just an .xml file. For example, https://www.casinos.de/sitemap/ They're using Yoast SEO and sitemap.xml is also available, but how ...
HenrijsS's user avatar
  • 111
1 vote
2 answers
386 views

How to insert a sitemap within a subsite when using Wordpress multisite

I have a multisite Wordpress site. The structure of its URLs is currently the following: mysite.com mysite.com/subfolder/ Now, I know that I can put the sitemap of the first site (mysite.com) in the ...
Iwishu's user avatar
  • 11
0 votes
1 answer
262 views

Omit custom post type from wp-sitemap.xml based on meta key using wp_sitemaps_posts_query_args

I'm trying to omit specific CPTs from the WordPress generated wp-sitemap.xml based on a meta key value. I only found one post online regarding this on perishable press, however it throws up a fatal ...
liquidRock's user avatar
2 votes
1 answer
2k views

Add custom URLs to WordPress's XML sitemap

My WordPress site also incorporates some external non-WP content that is dynamically pulled into the page via shortcode. The content shown depends on a query string parameter. So from WP's point of ...
equin0x80's user avatar
  • 143
0 votes
1 answer
54 views

How to get the URL of a sitemap that contains a certain post?

I am searching for a way to "detect" in which sitemap a post is located in but I cannot find any solution to this problem, nor does any SEO plugin or Cache plugin provide any way or wrapper ...
cristianuibar's user avatar
1 vote
1 answer
55 views

Query categories that have a description

I want to query the categories and tags that have a description to make sure only those are listed in the sitemap. The description__like argument used by get_terms() is the closest I've gotten to it. /...
Juan R.'s user avatar
  • 11
1 vote
0 answers
1k views

sitemap contains weird links and does not contain my pages [closed]

I was about to submit my wordpress auto-generated sitemap to Google Search Console but I realized my sitemap contains weird links and it doesnt contain any of my actual pages. I checked example.com/...
dudi's user avatar
  • 13
0 votes
1 answer
886 views

Exclude a specific page from Wordpress sitemap. (wp-sitemap.xml)

Instead of no indexing a page I just want to exclude it from the auto created wp-sitemap.xml (some code in the functions.php file) I found this but it did not seem to work? https://perishablepress.com/...
Mikeys4u's user avatar
  • 129
2 votes
0 answers
149 views

How do I get WordPress URL rewrites into Sitemap?

Consider the two following custom post types: Museums Bakeries With one shared taxonomy: Region I'm using rewrite rules to improve the URL structure, so I can serve pages to visitors such as: ...
rc_tn's user avatar
  • 21
0 votes
1 answer
73 views

Google search console sitemap 404 error

I have a problem with the sitemap in Google search console. In the index sitemap I see al posttypes with a link to the sitemap from that posttype. https://www.example.com/wp-sitemap-posts-post-1.xml ...
Jop's user avatar
  • 127
0 votes
1 answer
21 views

Unlimited false pages showing in Sitemap?

I don’t know since when it started but today, I looked at it and it shows more than 90k pages are indexed on google in search console when my site has only 90 posts and some pages. https://priceunder....
Frank Smith's user avatar
3 votes
1 answer
180 views

Add image tags to native WordPress XML Sitemaps

I would like to add image tags into my sitemap posts: <image:image> <image:loc> <![CDATA[ https://example.com/image.jpg ]]> </image:loc> <image:caption> <![CDATA[ ...
Pbinder's user avatar
  • 149
1 vote
1 answer
101 views

How can I include an existing custom sitemaps listing in wp-sitemap.xml?

I have several existing custom sitemap xml files, and I'd like to know which add_filter to use to add those custom sitemaps to the existing https://www.example.com/wp-sitemap.xml page.
l_r's user avatar
  • 21
1 vote
1 answer
53 views

Part of Menu Item Hidden on Header Menu

My business site is built on WordPress and I am using the "Shifters Lite" WP theme right now. My issue is: One of my primary menu item (designed as per my web-pages) is getting hidden on the Header ...
Manu Mathur's user avatar
0 votes
1 answer
39 views

How to make in wordpress a gallery with 3 colums to 1 on mobile devices responsive?

After taking a lot of time researching websites I ask for help in this forum. Im looking to have a gallery on the website like this: decañamo.site When the webpage is open it goes from the 3 ...
Andres Martinolli Anatole's user avatar
1 vote
0 answers
51 views

Custom post type + category archive page

I have default post type "post" and created custom post type "restaurants". I have categories (not taxonomy): cat1 and cat2. I want to work with same categories on both post types and I don't want to ...
Roman Sarvarov's user avatar
0 votes
1 answer
903 views

WordPress sitemap “Extra content at the end of the document”

I have used WordPress with the plugin to generate a sitemap on request (in my case it was "All In One SEO Pack"). In the beginning, everything worked fine, but at some moment I found that the sitemap ...
P. Dmitry's user avatar
  • 101
0 votes
2 answers
233 views

Sitemap not containing all pages

I have a database of all the towns / counties / postcodes in the UK - and using a plugin I am able to dynamically generate a page for each town. However, in the site map - there are only about 25 ...
Fozzy279's user avatar
-1 votes
1 answer
2k views

How to noindex, follow a specific category wordpress?

Google appears to be ignoring my robots.txt (despite being valid) How do I noindex, follow a specific category without plugins?
PublicDisplayName's user avatar
1 vote
0 answers
26 views

Wordpress Sitemap including pages that aren't there

I dont know if this is a severe cache, or a bug of sorts, I've installed multiple "seo" plugins to try and fix this, trawled the file system, cleaned the database, I don't know what is generating this ...
Shannon Hochkins's user avatar
0 votes
3 answers
124 views

I need help locating a URL that is on my site map, but that I can't find in my Wordpress dashboard

I hired a developer to implement the LearnDash plugin on my Wordpress site. He wasn't able to finish the project and left my site with several unnecessary pages and plugins. I want to get my site back ...
livinge123's user avatar
0 votes
0 answers
885 views

XML sitemap in Wordpress 5 without plugin?

I use that code in few Wordpress sites version 4.x. But it does not work with Wordpress 5. When I try to paste it in the functions.php file, I can't save it. Wordpress answers me 'Something goes wrong'...
Maya's user avatar
  • 1
0 votes
0 answers
148 views

Using $this with an anonymous function in filters

Okay so I have a method within a class which looks like $this->addToSitemap('page', $urls); This is used to append extra pages to the Yoast Sitemap. Here 'page' is the type of sitemap within ...
Fahad Sohail's user avatar
0 votes
1 answer
693 views

Where to put robot.txt and sitemap.xml for wordpress installed in its own directory

My website is setup where wordpress is installed in it's own subdirectory, but the content is served as though it's at the domain root. (This wordpress codex page details the configuration) Wordpress ...
SherylHohman's user avatar
0 votes
1 answer
137 views

How to display a sitmap horizontally? [closed]

I've created a sitemap successfully using wp Realtime sitemap. I've read their instructions and made pages. but i want to show this sitemap horizontally which i attached .I created this sitemap using ...
Anondi's user avatar
  • 1
1 vote
1 answer
2k views

When does the Yoast SEO filter hook wpseo_sitemap_urlimages fire?

I am trying to attach a simple function to the Yoast SEO filter hook wpseo_sitemap_urlimages and get the function to run, but I cannot do so. My code is: function tp_filter_wpseo_sitemap_urlimages($...
cag8f's user avatar
  • 1,937
1 vote
0 answers
601 views

Multilingual XML sitemaps when using qTranslate-X

I am taking over a multilingual website that a previous developer left unfinished, and I found that he had used qTranslate-X as a localization plugin, in order to create handle the multilingual part ...
PaulJ's user avatar
  • 158
0 votes
0 answers
324 views

Category as Subdomain for One WP Install

Please I need help, I have a blog with already over 80k post (One WP Install). For Person reasons I want to change one of the category to a subdomain. I have searched for a plugin for that and it ...
Godwin Alex Ogbonda's user avatar
0 votes
1 answer
69 views

Crawl Errors in Search console

not sure if I am in the correct place. I have been all over the place the past few days trying to resolve some search console errors in webmastertools I have no technical knowledge of the back end of ...
Top Dog Sweepstakes's user avatar
0 votes
1 answer
16 views

changing products urls - redirects

I created my website without not knowing much about seo. I am editing my products pages with yoast, and I am changing products urls. My site is new, I have just indexed it in google search console, I ...
andres cano's user avatar
3 votes
2 answers
54 views

Does the 'WordPress Order' feature, within the WordPress Dashboard, have any impact on site architecture?

As you can see, within the image below, WordPress offers us to numerically arrange our Pages via a feature entitled 'Order'. I have been using this as a means to help organise my Pages, for my own ...
Craig's user avatar
  • 358
0 votes
1 answer
245 views

Disable parent in wp_list_pages - Wordpress

I have the following code the generates the sitemap. wp_list_pages( array( 'exclude' => '5', ...
Ahsan Ali's user avatar
  • 101
0 votes
0 answers
328 views

Create html tree sitemap

i am trying create html sitemap without plugin. How can i get all parents and his childs ? I want to create something like this Main page Category 1 post 1 of category 1 Category 2 Other page ...
Sergey Smekodub's user avatar
1 vote
1 answer
1k views

Create a sitemap without a plugin - get parent pages only?

I want to create a sitemap that only includes parent pages only. This is the code I use usually to get parent pages only: $args = array( 'post_type' => 'page', 'post_parent' => 0, '...
Run's user avatar
  • 331
2 votes
0 answers
502 views

XML sitemap over product variations

So i have a smaller webshop, that contains a lot of products - and some of those products have variants - like blue, yellow, red and so on. But the thing is that Yoast SEO's sitemap generator only ...
Mac's user avatar
  • 313
0 votes
2 answers
8k views

Where is All in One SEO Pack sitemap.xml located?

I used the XML Sitemaps in the All in One SEO Pack plugin to generate my sitemap. When I type in the site address/sitemap.xml (http://flysuas.ie/sitemap.xml) the sitemap appears. I want to get rid ...
SeanJ's user avatar
  • 167