Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
The home page of a site. Could either contain the blog index, or a static page.
0
votes
1
answer
123
views
Swap home page based on user role, Elementor layout breaking
I work for a manufacturer that has normal boring consumers and wholesale dealers. We want to display a different home page for these two different audiences. Consumers will get more of a brand overvie …
0
votes
Swap home page based on user role, Elementor layout breaking
I do believe I've got it. Here's the code:
// Display different home page for dealer vs consumer
if( is_user_logged_in() ) {
$current_user = wp_get_current_user();
$user = new WP_User($current_u …