categories - Category pages redirecting to tab on Posts page grid

I have a Posts page () which has a tabbutton for each Category. I would like my Category pages to open this tab instea

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();

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745317868a4622301.html

相关推荐

  • categories - Category pages redirecting to tab on Posts page grid

    I have a Posts page () which has a tabbutton for each Category. I would like my Category pages to open this tab instea

    10小时前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信