How to show posts in a custom page but not also wordpress category pages

Posted in: Newspaper
Post count: 237

Hello

I have a odd question here

I want to have my site display posts on a custom page URL https://www.site.com/blog but I don’t want this to also be a category page that makes https://www.site.com/category/blog

It is very easy and simple to just create a new page /blog and insert from cloud template and choose the category to be shown in the block. But doing it this way also creates an additional /category/blog URL

The result is you would have two URLs on your site displaying the same posts which is would be seen as duplicate pages basically.

How can I create a site.com/blog page without posts also being generated under the site.com/category/blog at the same time to avoid two pages with a list of the same posts?

I did come up with one crazy solution but search engines are refusing to honour this.

What I did/tried

Created the wordpress category “Blog”
Create a page called /blog
Added a block from cloud templates and set it to show the “Blog” category posts
Created a menu item to the /blog page
Used both Yoast and robots.txt to say NOINDEX for the /category/blog URL so Google will only see the /blog URL and not also the site.com/category/blog URL so they will not consider two URLS/Pages on the same site showing the same posts

Google refused the honour the Yoast and robots.txt to not index crawl or discover the site.com/category/blog URL

Okay so. I know technical seo and google indexing is not covered by your support here. Google not paying attention to my instructions is a separate issue. Yes I understand this

However, I would like to know how to use your theme display posts via via using the cloudblock templates on a custom page url just called site.com/blog without them also going to site.com/category/blog URL

How do other sites do this ?

Post count: 237

I am sorry. I also forgot to mention

I also attempted to created a custom post type using a the custom post type plugin as seen here However, the problem I face is the custom post type category will not show as selectable item in the block editor interface to tell it which categories you want the block to show.

Maybe theme does not work or compatible with the custom post types plugin and may need to use manual method which is too complicated for me. Or maybe the theme will still not work even doing custom post type manually?

Post count: 35449

Hi,

To set up a blog you can use the WordPress option (it really won’t let you use cloud templates, but standard templates can be used) -> https://i.imgur.com/nRAY32B.png -> https://i.imgur.com/AB6p5sL.png please try this, maybe will help you!

Usually when you are using custom post types and you want tp be displayed in blocks, those need to be set -> https://prnt.sc/0ERyZT6hA66C
Indeed there is a possibility that the code to need some custom changes to work if you are using https://www.wpbeginner.com/wp-tutorials/how-to-add-categories-to-a-custom-post-type-in-wordpress/ that guide, unfortunate, we can not help with this, you’ll need a developer.
Thank you!

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.