Page URL duplicated twice in the website sitemap - wordpress

When WordPress website Home Page displays the latest posts, the Rank Math SEO Plugin Sitemap contains the Home Page URL (https://website.com/) twice. In "page_sitemap.xml" and "post_sitemap.xml".
I created a static page and blog page as a test, and from settings I selected "Home Page as Homepage" and "Blog Page as Posts Page".
The same thing happened, the Blog Page URL (https://website.com/blog/) duplicated twice in "page_sitemap.xml" and "post_sitemap.xml".
Logically the Page URL must be in "page_sitemap.xml" only.
Why this is happening and If this is wrong, could you please guide me to the best practices to do?

When you see your homepage both at page-sitemap and post-sitemap, that might be happening because you've selected WordPress Dashboard > Settings > Reading > Your homepage displays to your latest posts. The sitemap should have chosen a static page but choosing that option will show the latest posts on that page. So the homepage is both a homepage (included in page-sitemap) and a posts page (included in post-sitemap), and logically that's correct.
But It’s fine, and that shouldn’t cause any SEO issues, as it simply tells Google to crawl the site. But at some point, Google will count the same URL in different sitemap files separately, which could sometimes lead to the number of URLs in your sitemaps being less than the number of URLs counted as being indexed. The same URL in multiple sitemaps is counted separately, which is why you could see something like this.
However, creating a static page for the homepage and a blog page should work.
In your case, this might be happening due to a caching issue. You can try clearing the sitemap cache and excluding the sitemap from caching.
#Steps:
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp
2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
https://rankmath.com/kb/exclude-sitemaps-from-caching/
3. If the above steps doesn't seem to work, kindly apply the following filter code to your site.
`add_filter( 'rank_math/sitemap/enable_caching', '__return_false');`
Here's how you can add filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/

Related

Wordpress error: Blog page redirection issue

I am facing a weird issue in WordPress, I have to 2 URL's
xyz.com/features/feature-details - this is a page link
xyz.com/blog/feature-details-using-xyz - this is a blog link
Now the issue here is when someone opens the blog link then page which renders has both features page and blog page rendered one below the other. But when someone visits the feature page it loads properly.
The solutions which I already tried are as follows:
I tried clearing the slug
I tried re-naming the URL of the Page and Blog both
I have tried clearing the cache
The problem is happening with all the url's which has some part of the url in common i.e. 'feature-details' in the above example.
Is there anything that I am missing or doing wrong?

Cannot create Elementor Posts page in Wordpress although I have selected in Reading page

I want to use my Posts page with Elementor modules.
I have done my Homepage like that
but cannot do the same with Posts page.
I have created an empty page,
added some modules.
And selected this page as Posts page in Reading page.
But when I click a page on my website,
my Elementor Posts page is not seen,
the default Wordpress page is seen.
Update :
I'm using Neve theme on Wordpress v5.8
My website address is Tubefavorites.com
My homepage with Elementor and posts page with default Wordpress has different fonts
and my homepage and posts page's components are in different order.
(In homepage its Tags, Categories, ...
In my posts page its Tags, Last Posts, ...
I'm working online in browser (its not local).
There is no error on Chrome Console.
Update end.
Currently I'm trying this in Turkish pages.
I will make the English Elementor page after I fix this.
How can I fix this?
Thanks
Do you have Elementor enabled for post?
Thus, if I understood correctly, you have created a page post and want to add it as homepage. You should go to settings - reading and select via dropdown the page you have created! Then, you will see your page as homepage and not the default one
There is also an explanation in support forum, that someone has the same problem. Please read below:
"Looks like you’re trying to edit your Posts page that has been assigned in your WordPress Reading settings (Settings > Reading). If this is the case, you may not be able to edit the assigned Posts page directly with Elementor (Basic version).
You can try deselecting the page (in the “Posts Page” box within your Reading settings) then try editing this page with Elementor"
link to the source: https://wordpress.org/support/topic/cannot-load-posts-page-with-elementor/
Thus, disable your page through Settings - Reading, edit/modify (whatever you want) your Post page. After that, you could add your page blog posts URL to the meny item (or use this URL to wherever is nessecary)
EDITED
What plugin are you using for the translations?
I saw your homepage playing correct, right? Thus, you have selected your custom page correctly, through the Settings - Reading.
Now, if you want to see the same results in Turkish, you need to translate your home page too! So, add the translation in turkish language too, or duplicate the english version for turkish one and it will play!
UPDATED
I think there is an issue with the blog page (and single post template, as I am reading in WP forum for this theme). Try to check inside Appearence -> Customize, if there is any options there, thus could change the blog template. Somehow the theme overwrites your options. Furthermore, take a look at the blog theme's doc here:
https://docs.themeisle.com/article/1306-neve-blog-archive-options
I have learned that, I have to use Templates page, in Elementor Pro.
I didn't have been selected it.
Thanks to Hakkı Uçar for this
and for installing and for helping.

Why is WordPress creating paginations for my single author pages?

On a WordPress website which I have inherited from another development company, authors have pages which can be visited. Using Advanced Custom Fields each author has various fields to add content such as their image, bio, contact details etc.
The authors single page works as expected, pulling through all relevant information. The issue I am having is that these pages have somehow been paginated. This means the same page has multiple URLs e.g website.com/author-name/ and website.com/author-name/page/2/.
This issue flagged up in google search console as an error. If it helps, the website uses the 'User Role Editor' plugin and Yoast SEO (which is adding rel_next and rel_prev tags to the pages in question). I have already tried disabling these to see if they are causing the issue but no luck. Any ideas?

Wordpress blog - Removing multiple URLs

I have a blog hosted on Wordpress Technowide with Reading setting as Homepage as Posts page i.e. I have made the home page http://technowide.net/home/ as my blog post page as the result all my blogs listing is displayed on my home page itself along with post navigation.
This resulted in duplicating of URLs with same blog listings.
For example: Both the below URLs show same latest 10 blogs:
http://technowide.net/
http://technowide.net/home/
Same is the case with following pair with next 10 latest posts:
http://technowide.net/home/page/2/
http://technowide.net/page/2/
and so on.
Can anybody please assist me to address this issue??
The default behaviour is for the homepage to show your latest posts (blog). If that's what you're aiming for change "Front page displays" to "Your latest posts".
The problem you have at the moment is caused by setting the Blog posts page to a page titled Home which I presume is supposed to be the homepage.

WP E-Commerce + Static Page Content = Wont Work Together

I am having a problem with permalinks to staic pages, and wp-e commerce.
I have 2 types of content:
1) Pages that are static and use unique templates, published as pages, organized into menus.
2) Posts that are generated by the wp e-commerce plugin, published as posts, organized via wp-ecommerce templates.
Here is the Series of events I am dealing with(I am starting to hate wp e-commerce)
Staic Pages give me a 404 Error
I disable WP E-Commerce
Static pages ALL display the same default homepage template
I update any static page content(just press the update button)
All static pages are showing now.
I make ANY change in the wp dashboard and we're back at step 1.
Can anyone make any sense of this?
According to the Wordpress Documentation,
If you've tried to navigate to a newly created Page and encounter an
error, you likely need to update your Permalink structure. Remember,
each time you add a new static Page to WordPress, new rules must be
generated and updated to .htaccess (WordPress 1.X) or to the internal
rewrites array (WordPress 2.X).
Please also note that it is not advised to start your permalinks with tags like %postname%, %category%, or other text-based tags as it can really decrease performance as you have more posts.
Unfortunately I could not find a way to do this and keep my url decent. I ended up just going with the regular permalink structure. It works, but is not ideal.
Thanks for everyone's input.

Resources