I want to use a custom PHP template for an archive or single page while maintaining Toolset’s filtering capabilities. However, Toolset requires using its own archives for filters, and I would like to retain regular WooCommerce functionality as much as possible.
Solution:
Toolset filters cannot be used in a standard WordPress archive. However, you can create a Toolset WP archive and use a custom PHP shortcode to insert content in the desired sections while keeping the Toolset filtering functionality.
I want to display custom post type (CPT) listings based on categories selected by a user during account registration. For example, if User 1 selects categories A, C, and E, they should only see posts categorized under A, C, and E. User 2 should see posts in categories B and D based on their selection.
Solution:
A possible workaround is adding checkboxes to the user profile during sign-up to store category selections. Then, use a conditional statement on the listing page to display posts based on the user’s selected categories.