Fredrik
  • Member for 1 year, 10 months
  • Last seen more than a month ago
Display first name of logged in user?
Accepted answer
1 votes

The issue here is that both the functions have the same name - colaborator_avatar(). Make sure that $new_user contains the current user. Else use get_current_user_id() like this: get_user_meta( ...

View answer
Save Plugin Options as Array
0 votes

Okey I got it. I was close the whole time :) function weborder_leveranstext_render( ) { $options = get_option( 'weborder_settings' ); global $wp_roles; $all_roles = $wp_roles->get_names(); ...

View answer
Send email to user when I publish a new post
0 votes

If you set the first if like this, it will ONLY send you these mails when you have created a NEW post. Not when you change it between different status. And this goes for all post types, you might (as ...

View answer
How to restrict logged user to view only certain pages?
Accepted answer
0 votes

This code filter the content for custom post types "news", you say "specific pages" so this can be adjusted to your needs. Then it checks if the user is a subscriber, and shows the ...

View answer
how to create user profile pages and display them based on users roles
0 votes

Try this to get you started. This creates a shortcode [alldevelopers] that displays a list of all developers. Pretty basic but can be heavily extended and duplicted. (Not tested) add_shortcode( '...

View answer
How to show address in one row?
Accepted answer
0 votes

It has to do with your <br> between each label field. Its not a PHP problem its a CSS. Try to add .wpcf7cf_group br { display: none; } to your css file or use a wordpress plugin like Simple ...

View answer