Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 logic to swap out category archive with designated page #3

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

cparkinson
Copy link

Hi Heather - I added the functionality for the category / landing page swaparoo. The plugin checks query_vars for a category name and if it thinks it's on a category archive it finds the assigned category page from the plugin settings screen and grabs the ID. If that page has been published, it modifies the request to load that specific page.

Post type functionality is unchanged: on post type archive, title and description are included from the assigned page.

Please test and lmk if this looks good to you. The functionality might not be needed on every site. Next idea is to enable/disable settings for various archive types (post type, category, custom taxonomy)

@cparkinson cparkinson linked an issue Nov 15, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

logic to swap out category archive with designated page
1 participant