最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

categories - Category pages redirecting to tab on Posts page grid

programmeradmin1浏览0评论

I have a Posts page (/) which has a tab/button for each Category. I would like my Category pages to open this tab instead of loading the default Category page. Is there a way to do this so that the Category title and meta description (via Yoast) which I will set will show in Google, but the tab of the Posts page load instead of just the Category page?

I have Categories in two hierarchies; single level ones, and ones which are a sub-category below the main Category of "Country".

Examples:

/ this should load /?tx_category=education

/ this should load /?tx_category=japan

Would a simple 301 or 302 redirect cause the Google entry title/meta/url to show the redirected page info and pass rank to the Posts/Locations page? I have tried to read around the subject and not sure.

Any help would be appreciated :)

I have a Posts page (https://www.obsidianurbexphotography/locations/) which has a tab/button for each Category. I would like my Category pages to open this tab instead of loading the default Category page. Is there a way to do this so that the Category title and meta description (via Yoast) which I will set will show in Google, but the tab of the Posts page load instead of just the Category page?

I have Categories in two hierarchies; single level ones, and ones which are a sub-category below the main Category of "Country".

Examples:

https://www.obsidianurbexphotography/category/education/ this should load https://www.obsidianurbexphotography/locations/?tx_category=education

https://www.obsidianurbexphotography/category/country/japan/ this should load https://www.obsidianurbexphotography/locations/?tx_category=japan

Would a simple 301 or 302 redirect cause the Google entry title/meta/url to show the redirected page info and pass rank to the Posts/Locations page? I have tried to read around the subject and not sure.

Any help would be appreciated :)

Share Improve this question asked Jul 8, 2019 at 4:46 ObsidianObsidian 376 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

For now I have done this via category.php

/* Redirect Category to Post Grid tab */ <?php $cat = get_queried_object(); wp_redirect( site_url('/locations/').'?tx_category='.$cat->slug ); exit();

发布评论

评论列表(0)

  1. 暂无评论