5
votes
Redirect User based on Tags
If a User has or does have a Tag and clicks a menu item, then redirect them to x page. Currently WPFusion only shows/hides menu items based on Tags.
Got an idea for a new feature or integration? We’d love to hear it! You can find our roadmap here.
If a User has or does have a Tag and clicks a menu item, then redirect them to x page. Currently WPFusion only shows/hides menu items based on Tags.
Just set a redirect on the underlying content: https://wpfusion.com/documentation/getting-started/access-control/#meta-box
As an added bonus, this can be used to hide the menu items as well, so you only need to configure the settings in one place https://wpfusion.com/documentation/tutorials/menu-item-visibility/#automatically-hide-restricted-items
Any experts that can think of a way to make some javascript that would check user tag and redirect based on that?
Hey Andrew,
You might be able to find a developer via https://codeable.io/ who can do this, and we have some more information at https://wpfusion.com/documentation/advanced-developer-tutorials/how-to-submit-a-job-on-codeable-for-custom-development/
However, most developers are going to tell you that this is a bad idea, because doing a redirect via JavaScript means you need to wait for the whole page to load, the JavaScript file to load, and then the redirect to run. This means the user will see a flash of content before they are redirected. It’s just generally not a great idea.
WP Fusion has many PHP filters that allow you to do redirects based on tags. A good place to start is https://wpfusion.com/documentation/filters/wpf_redirect_url/